Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def regenerate(state, image_process_mode):
|
|
| 90 |
|
| 91 |
@spaces.GPU
|
| 92 |
def generate(state, imagebox, textbox, image_process_mode, temperature, top_p, max_output_tokens):
|
| 93 |
-
prompt = FIXED_PROMPT
|
| 94 |
images = state.get_images(return_pil=True)
|
| 95 |
|
| 96 |
ori_prompt = prompt
|
|
@@ -245,9 +245,10 @@ with gr.Blocks(title="CuMo", theme=gr.themes.Default(), css=block_css) as demo:
|
|
| 245 |
with gr.Column(scale=1, min_width=50):
|
| 246 |
submit_btn = gr.Button(value="Send", variant="primary")
|
| 247 |
with gr.Row(elem_id="buttons") as button_row:
|
|
|
|
| 248 |
stop_btn = gr.Button(value="⏹️ Stop Generation", interactive=False)
|
| 249 |
regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=False)
|
| 250 |
-
|
| 251 |
|
| 252 |
|
| 253 |
gr.Markdown(tos_markdown)
|
|
|
|
| 90 |
|
| 91 |
@spaces.GPU
|
| 92 |
def generate(state, imagebox, textbox, image_process_mode, temperature, top_p, max_output_tokens):
|
| 93 |
+
prompt = FIXED_PROMPT
|
| 94 |
images = state.get_images(return_pil=True)
|
| 95 |
|
| 96 |
ori_prompt = prompt
|
|
|
|
| 245 |
with gr.Column(scale=1, min_width=50):
|
| 246 |
submit_btn = gr.Button(value="Send", variant="primary")
|
| 247 |
with gr.Row(elem_id="buttons") as button_row:
|
| 248 |
+
clear_btn = gr.Button(value="⚠️ Please press here after every run ⚠️", interactive=False)
|
| 249 |
stop_btn = gr.Button(value="⏹️ Stop Generation", interactive=False)
|
| 250 |
regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=False)
|
| 251 |
+
|
| 252 |
|
| 253 |
|
| 254 |
gr.Markdown(tos_markdown)
|