ysharma HF staff commited on
Commit
4bc1ced
·
1 Parent(s): 09b3a85

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. 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}")