Update app.py
Browse files
app.py
CHANGED
@@ -231,9 +231,9 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
231 |
#geht nur über spezielle OpenAI-Schnittstelle...
|
232 |
ext = analyze_file(file)
|
233 |
if (ext == "png" or ext == "PNG" or ext == "jgp" or ext == "jepg"):
|
234 |
-
result=
|
235 |
else:
|
236 |
-
result =
|
237 |
|
238 |
history = history + [((file,), None),(prompt, result)]
|
239 |
|
|
|
231 |
#geht nur über spezielle OpenAI-Schnittstelle...
|
232 |
ext = analyze_file(file)
|
233 |
if (ext == "png" or ext == "PNG" or ext == "jgp" or ext == "jepg"):
|
234 |
+
result= generate_text_zu_bild(file, prompt, k, rag_option, chatbot)
|
235 |
else:
|
236 |
+
result = generate_text_zu_doc(file, prompt, k, rag_option, chatbot)
|
237 |
|
238 |
history = history + [((file,), None),(prompt, result)]
|
239 |
|