aifeifei798 commited on
Commit
7af0b15
·
verified ·
1 Parent(s): 4fa4a41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
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
- with gr.Row():
73
- with gr.Column():
74
- input_img = gr.Image(label="Input Picture",height=320,type="filepath")
75
- submit_btn = gr.Button(value="Submit")
76
- with gr.Column():
77
- output_text = gr.Textbox(label="Flux Prompt")
78
 
79
 
80
- submit_btn.click(feifeichat, [input_img], [output_text])
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()