Spaces:
Runtime error
Runtime error
Update merged_app2.py
Browse files- merged_app2.py +4 -4
merged_app2.py
CHANGED
@@ -1931,7 +1931,7 @@ with gr.Blocks() as app:
|
|
1931 |
outputs=[extracted_fg, x_slider, y_slider]
|
1932 |
)#.then(clear_memory, inputs=[], outputs=[])
|
1933 |
|
1934 |
-
with gr.Tab("Style Transfer"
|
1935 |
gr.Markdown("## Apply the style of an image to another one")
|
1936 |
with gr.Row():
|
1937 |
with gr.Column():
|
@@ -1982,7 +1982,7 @@ with gr.Blocks() as app:
|
|
1982 |
return img_result
|
1983 |
|
1984 |
|
1985 |
-
send_to_relight.click(move_prompt, [description_text], [prompt])
|
1986 |
|
1987 |
transfer_btn.click(send_img, [output_image], [input_fg])#.then(clear_memory, inputs=[], outputs=[])
|
1988 |
|
@@ -1992,7 +1992,7 @@ with gr.Blocks() as app:
|
|
1992 |
fn=generate_description,
|
1993 |
inputs=[text_to_describe,image_to_describe],
|
1994 |
outputs=description_text
|
1995 |
-
)
|
1996 |
|
1997 |
generate_btn.click(
|
1998 |
fn=generate_image,
|
@@ -2001,5 +2001,5 @@ with gr.Blocks() as app:
|
|
2001 |
)#.then(clear_memory, inputs=[], outputs=[])
|
2002 |
|
2003 |
if __name__ == "__main__":
|
2004 |
-
app.queue(default_concurrency_limit=3)
|
2005 |
app.launch(share=True)
|
|
|
1931 |
outputs=[extracted_fg, x_slider, y_slider]
|
1932 |
)#.then(clear_memory, inputs=[], outputs=[])
|
1933 |
|
1934 |
+
with gr.Tab("Style Transfer"):
|
1935 |
gr.Markdown("## Apply the style of an image to another one")
|
1936 |
with gr.Row():
|
1937 |
with gr.Column():
|
|
|
1982 |
return img_result
|
1983 |
|
1984 |
|
1985 |
+
send_to_relight.click(move_prompt, [description_text], [prompt])#.then(move_prompt, [description_text], [prompt_fill])
|
1986 |
|
1987 |
transfer_btn.click(send_img, [output_image], [input_fg])#.then(clear_memory, inputs=[], outputs=[])
|
1988 |
|
|
|
1992 |
fn=generate_description,
|
1993 |
inputs=[text_to_describe,image_to_describe],
|
1994 |
outputs=description_text
|
1995 |
+
)#.then(clear_memory, inputs=[], outputs=[])
|
1996 |
|
1997 |
generate_btn.click(
|
1998 |
fn=generate_image,
|
|
|
2001 |
)#.then(clear_memory, inputs=[], outputs=[])
|
2002 |
|
2003 |
if __name__ == "__main__":
|
2004 |
+
# app.queue(default_concurrency_limit=3)
|
2005 |
app.launch(share=True)
|