alexkueck commited on
Commit
4a38bdc
·
1 Parent(s): bdd09fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -444,7 +444,10 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
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()['content']
 
 
 
448
  history = history + [((file,), None),(prompt, result)]
449
 
450
  chatbot[-1][1] = result
 
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
+ print("resutl image.................")
449
+ print(result)
450
+ result = result.content
451
  history = history + [((file,), None),(prompt, result)]
452
 
453
  chatbot[-1][1] = result