Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -204,12 +204,6 @@ with gr.Blocks(title="CuMo", theme=gr.themes.Default(), css=block_css) as demo:
|
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
imagebox = gr.Image(label="Input Image", type="filepath")
|
207 |
-
imagebox.change(
|
208 |
-
fn=clear_history,
|
209 |
-
inputs=None,
|
210 |
-
outputs=[state, chatbot, textbox, imagebox, regenerate_btn, clear_btn],
|
211 |
-
queue=False
|
212 |
-
)
|
213 |
image_process_mode = gr.Radio(
|
214 |
["Crop", "Resize", "Pad", "Default"],
|
215 |
value="Default",
|
@@ -254,7 +248,13 @@ with gr.Blocks(title="CuMo", theme=gr.themes.Default(), css=block_css) as demo:
|
|
254 |
stop_btn = gr.Button(value="⏹️ Stop Generation", interactive=False)
|
255 |
regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=False)
|
256 |
clear_btn = gr.Button(value="🗑️ Clear", interactive=False)
|
257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
gr.Markdown(tos_markdown)
|
259 |
gr.Markdown(learn_more_markdown)
|
260 |
url_params = gr.JSON(visible=False)
|
|
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
imagebox = gr.Image(label="Input Image", type="filepath")
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
image_process_mode = gr.Radio(
|
208 |
["Crop", "Resize", "Pad", "Default"],
|
209 |
value="Default",
|
|
|
248 |
stop_btn = gr.Button(value="⏹️ Stop Generation", interactive=False)
|
249 |
regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=False)
|
250 |
clear_btn = gr.Button(value="🗑️ Clear", interactive=False)
|
251 |
+
imagebox.change(
|
252 |
+
fn=clear_history,
|
253 |
+
inputs=None,
|
254 |
+
outputs=[state, chatbot, textbox, imagebox, regenerate_btn, clear_btn],
|
255 |
+
queue=False
|
256 |
+
)
|
257 |
+
|
258 |
gr.Markdown(tos_markdown)
|
259 |
gr.Markdown(learn_more_markdown)
|
260 |
url_params = gr.JSON(visible=False)
|