Update app.py
Browse files
app.py
CHANGED
|
@@ -442,7 +442,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
| 442 |
else:
|
| 443 |
#Es wurde ein Bild angehängt -> wenn prompt dazu, das Bild analysieren
|
| 444 |
#geht nur über spezielle OpenAI-Schnittstelle...
|
| 445 |
-
headers, payload = process_image
|
| 446 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
| 447 |
result = response.json()
|
| 448 |
history = history + [((file,), None),(prompt, result)]
|
|
|
|
| 442 |
else:
|
| 443 |
#Es wurde ein Bild angehängt -> wenn prompt dazu, das Bild analysieren
|
| 444 |
#geht nur über spezielle OpenAI-Schnittstelle...
|
| 445 |
+
headers, payload = process_image(file, prompt)
|
| 446 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
| 447 |
result = response.json()
|
| 448 |
history = history + [((file,), None),(prompt, result)]
|