Spaces:
Running
Running
aifeifei798
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -69,14 +69,11 @@ def feifeichat(image):
|
|
69 |
with gr.Blocks() as demo:
|
70 |
gr.Markdown("Image To Flux Prompt")
|
71 |
with gr.Tab(label="Image To Flux Prompt"):
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
submit_btn = gr.Button(value="Submit")
|
76 |
-
with gr.Column():
|
77 |
-
output_text = gr.Textbox(label="Flux Prompt")
|
78 |
|
79 |
|
80 |
-
|
81 |
|
82 |
demo.launch()
|
|
|
69 |
with gr.Blocks() as demo:
|
70 |
gr.Markdown("Image To Flux Prompt")
|
71 |
with gr.Tab(label="Image To Flux Prompt"):
|
72 |
+
input_img = gr.Image(label="Input Picture",height=320,type="filepath")
|
73 |
+
submit_btn = gr.Button(value="Submit")
|
74 |
+
output_text = gr.Textbox(label="Flux Prompt")
|
|
|
|
|
|
|
75 |
|
76 |
|
77 |
+
submit_btn.click(feifeichat, [input_img], [output_text])
|
78 |
|
79 |
demo.launch()
|