amarax commited on
Commit
5ee3993
·
1 Parent(s): a210bcd

Revert "Update app.py"

Browse files

This reverts commit a210bcd13c127315db7457c4bc31c5df4b039696.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -218,7 +218,7 @@ with gr.Blocks(css="#chatbot {overflow:auto; height:500px;} .message img {max-wi
218
  run.click(bot.run_text, [txt, state], [chatbot, state])
219
  run.click(lambda: "", None, txt)
220
 
221
- def refer_to_image(evt, text):
222
  result = re.search(r"image\/\S+\.png", evt.value)
223
  if result:
224
  text = text + " " + result.group() + " "
 
218
  run.click(bot.run_text, [txt, state], [chatbot, state])
219
  run.click(lambda: "", None, txt)
220
 
221
+ def refer_to_image(evt: gr.SelectData, text):
222
  result = re.search(r"image\/\S+\.png", evt.value)
223
  if result:
224
  text = text + " " + result.group() + " "