Update app.py
Browse files
app.py
CHANGED
@@ -144,12 +144,6 @@ def add_text(chatbot, history, prompt, file):
|
|
144 |
print(chatbot)
|
145 |
return chatbot, history, prompt, "", gr.File( label=None, interactive=False, height=20, min_width=20, visible=False, scale=2) #gr.Textbox(value="", interactive=False)
|
146 |
|
147 |
-
def add_file(history, file, prompt):
|
148 |
-
if (prompt == ""):
|
149 |
-
history = history + [((file.name,), None)]
|
150 |
-
else:
|
151 |
-
history = history + [((file.name,), None), (prompt, None)]
|
152 |
-
return history, prompt, ""
|
153 |
|
154 |
def file_anzeigen(file):
|
155 |
return gr.File(visible=True), file.name
|
|
|
144 |
print(chatbot)
|
145 |
return chatbot, history, prompt, "", gr.File( label=None, interactive=False, height=20, min_width=20, visible=False, scale=2) #gr.Textbox(value="", interactive=False)
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
def file_anzeigen(file):
|
149 |
return gr.File(visible=True), file.name
|