Spaces:
Paused
Paused
Revert "Update app.py"
Browse filesThis reverts commit a210bcd13c127315db7457c4bc31c5df4b039696.
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() + " "
|