Update app.py
Browse files
app.py
CHANGED
|
@@ -151,14 +151,14 @@ def add_text(chatbot, history, prompt, file):
|
|
| 151 |
print(chatbot)
|
| 152 |
return chatbot, history, prompt, "" #gr.Image( label=None, size=(30,30), visible=False, scale=1) #gr.Textbox(value="", interactive=False)
|
| 153 |
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
|
| 163 |
############################################
|
| 164 |
#nach dem Upload soll das zusätzliche Fenster mit dem image drinnen angezeigt werden
|
|
|
|
| 151 |
print(chatbot)
|
| 152 |
return chatbot, history, prompt, "" #gr.Image( label=None, size=(30,30), visible=False, scale=1) #gr.Textbox(value="", interactive=False)
|
| 153 |
|
| 154 |
+
def add_text2(chatbot, prompt):
|
| 155 |
+
if (prompt == ""):
|
| 156 |
+
chatbot = chatbot + [("", "Prompt fehlt!")]
|
| 157 |
+
else:
|
| 158 |
+
chatbot = chatbot + [(prompt, None)]
|
| 159 |
+
print("chatbot nach add_text............")
|
| 160 |
+
print(chatbot)
|
| 161 |
+
return chatbot, prompt,
|
| 162 |
|
| 163 |
############################################
|
| 164 |
#nach dem Upload soll das zusätzliche Fenster mit dem image drinnen angezeigt werden
|