alexkueck commited on
Commit
3a776e1
1 Parent(s): e06bb60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -163,7 +163,7 @@ def clear_all3(history):
163
  #History - die Frage oder das File eintragen...
164
  #in history_file ist ein file gespeichert, falls voher im Verlauf schon ein File hochgeladen wurde.
165
  #wird ein neuer File hochgeladen, so wird history_fiel dadurch ersetzt
166
- """
167
  def add_text(chatbot, history, prompt, file, file_history):
168
  if (file == None):
169
  chatbot = chatbot +[(prompt, None)]
@@ -175,7 +175,7 @@ def add_text(chatbot, history, prompt, file, file_history):
175
  chatbot = chatbot +[("Hochgeladenes Dokument: "+ get_filename(file) +"\n" + prompt, None)]
176
 
177
  return chatbot, history, prompt, file, file_history, gr.Image(visible = False), ""
178
-
179
  def add_text2(chatbot, prompt):
180
  if (prompt == ""):
181
  chatbot = chatbot + [("", "Prompt fehlt!")]
 
163
  #History - die Frage oder das File eintragen...
164
  #in history_file ist ein file gespeichert, falls voher im Verlauf schon ein File hochgeladen wurde.
165
  #wird ein neuer File hochgeladen, so wird history_fiel dadurch ersetzt
166
+
167
  def add_text(chatbot, history, prompt, file, file_history):
168
  if (file == None):
169
  chatbot = chatbot +[(prompt, None)]
 
175
  chatbot = chatbot +[("Hochgeladenes Dokument: "+ get_filename(file) +"\n" + prompt, None)]
176
 
177
  return chatbot, history, prompt, file, file_history, gr.Image(visible = False), ""
178
+ """
179
  def add_text2(chatbot, prompt):
180
  if (prompt == ""):
181
  chatbot = chatbot + [("", "Prompt fehlt!")]