Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -652,7 +652,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 652 |
swap_button = gr.Button(value="Swap")
|
| 653 |
with gr.Row():
|
| 654 |
swaped_result = gr.Gallery(show_label=False, rows=2, preview=True)
|
| 655 |
-
swaped_past = gr.Textbox(
|
| 656 |
swap_button.click(face_swaper, inputs=[source_image, target_image], outputs=[swaped_result, swaped_past])
|
| 657 |
with gr.Tab("Prompt Generator"):
|
| 658 |
gpt2_pipe = pipeline('text-generation', model='Gustavosta/MagicPrompt-Stable-Diffusion', tokenizer='gpt2')
|
|
|
|
| 652 |
swap_button = gr.Button(value="Swap")
|
| 653 |
with gr.Row():
|
| 654 |
swaped_result = gr.Gallery(show_label=False, rows=2, preview=True)
|
| 655 |
+
swaped_past = gr.Textbox(visible=False, interactive=False)
|
| 656 |
swap_button.click(face_swaper, inputs=[source_image, target_image], outputs=[swaped_result, swaped_past])
|
| 657 |
with gr.Tab("Prompt Generator"):
|
| 658 |
gpt2_pipe = pipeline('text-generation', model='Gustavosta/MagicPrompt-Stable-Diffusion', tokenizer='gpt2')
|