Spaces:
Runtime error
Runtime error
Update app_dialogue.py
Browse files- app_dialogue.py +3 -1
app_dialogue.py
CHANGED
@@ -684,7 +684,9 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
684 |
chatbot,
|
685 |
],
|
686 |
)
|
687 |
-
|
|
|
|
|
688 |
def remove_last_turn(chat_history):
|
689 |
print("************ remove_last_turn ***********")
|
690 |
print(f"params: chat_history - {chat_history}")
|
|
|
684 |
chatbot,
|
685 |
],
|
686 |
)
|
687 |
+
upload_btn.upload(lambda : gr.update(label='🖼️Uploaded!', interactive=True), [], upload_btn)
|
688 |
+
submit_btn.click(lambda : gr.update(label='📁 Upload image', interactive=True), [], upload_btn)
|
689 |
+
|
690 |
def remove_last_turn(chat_history):
|
691 |
print("************ remove_last_turn ***********")
|
692 |
print(f"params: chat_history - {chat_history}")
|