Update app.py
Browse files
app.py
CHANGED
|
@@ -136,7 +136,7 @@ def add_text(chatbot, history, prompt, file):
|
|
| 136 |
if (ext == "png" or ext == "PNG" or ext == "jpg" or ext == "jpeg" or ext == "JPG" or ext == "JPEG"):
|
| 137 |
chatbot = chatbot +[((file.name,), None), (prompt, None)]
|
| 138 |
else:
|
| 139 |
-
chatbot = chatbot +[(get_filename(file)
|
| 140 |
|
| 141 |
return chatbot, history, prompt, file, gr.Image(visible = False), "" #gr.Image( label=None, size=(30,30), visible=False, scale=1) #gr.Textbox(value="", interactive=False)
|
| 142 |
|
|
|
|
| 136 |
if (ext == "png" or ext == "PNG" or ext == "jpg" or ext == "jpeg" or ext == "JPG" or ext == "JPEG"):
|
| 137 |
chatbot = chatbot +[((file.name,), None), (prompt, None)]
|
| 138 |
else:
|
| 139 |
+
chatbot = chatbot +[(get_filename(file) +"\n" + prompt, None)]
|
| 140 |
|
| 141 |
return chatbot, history, prompt, file, gr.Image(visible = False), "" #gr.Image( label=None, size=(30,30), visible=False, scale=1) #gr.Textbox(value="", interactive=False)
|
| 142 |
|