alexkueck commited on
Commit
d5c44bc
1 Parent(s): 2fc16cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -523,8 +523,6 @@ def generate_text_zu_bild(file, prompt, k, rag_option, chatbot):
523
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
524
  #als json ausgeben
525
  data = response.json()
526
- print("response....................")
527
- print(data)
528
  # Den "content" auswählen, da dort die Antwort der Ki enthalten ist
529
  result = data['choices'][0]['message']['content']
530
  return result
@@ -666,7 +664,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
666
  with gr.Row():
667
  #file_display = gr.File(visible=False)
668
  image_display = gr.Image( visible=False)
669
- upload = gr.UploadButton("📁", file_types=["image", "video", "audio"], scale = 10)
670
  emptyBtn = gr.ClearButton([user_input, chatbot, history, attached_file, image_display], value="🧹 Neue Session", scale=10)
671
 
672
  with gr.Column():
 
523
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
524
  #als json ausgeben
525
  data = response.json()
 
 
526
  # Den "content" auswählen, da dort die Antwort der Ki enthalten ist
527
  result = data['choices'][0]['message']['content']
528
  return result
 
664
  with gr.Row():
665
  #file_display = gr.File(visible=False)
666
  image_display = gr.Image( visible=False)
667
+ upload = gr.UploadButton("📁", file_types=["image"], scale = 10)
668
  emptyBtn = gr.ClearButton([user_input, chatbot, history, attached_file, image_display], value="🧹 Neue Session", scale=10)
669
 
670
  with gr.Column():