alexkueck commited on
Commit
0a997f7
1 Parent(s): 77898f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -208,7 +208,9 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
208
  else:
209
  #Es wurde ein Bild angehängt -> wenn prompt dazu, das Bild analysieren
210
  #geht nur über spezielle OpenAI-Schnittstelle...
211
- result= generate_text_zu_bild(file, prompt, k, rag_option, chatbot)
 
 
212
  history = history + [((file,), None),(prompt, result)]
213
 
214
  chatbot[-1][1] = ""
@@ -414,7 +416,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
414
  with gr.Row():
415
  #file_display = gr.File(visible=False)
416
  image_display = gr.Image( visible=False)
417
- upload = gr.UploadButton("📁", file_types=["image"], scale = 10)
418
  emptyBtn = gr.ClearButton([user_input, chatbot, history, attached_file, image_display], value="🧹 Neue Session", scale=10)
419
 
420
  with gr.Column():
 
208
  else:
209
  #Es wurde ein Bild angehängt -> wenn prompt dazu, das Bild analysieren
210
  #geht nur über spezielle OpenAI-Schnittstelle...
211
+ print("name.....................")
212
+ print(file.name)
213
+ result= "Ausgabe" #generate_text_zu_bild(file, prompt, k, rag_option, chatbot)
214
  history = history + [((file,), None),(prompt, result)]
215
 
216
  chatbot[-1][1] = ""
 
416
  with gr.Row():
417
  #file_display = gr.File(visible=False)
418
  image_display = gr.Image( visible=False)
419
+ upload = gr.UploadButton("📁", file_types=["image", "pdf"], scale = 10)
420
  emptyBtn = gr.ClearButton([user_input, chatbot, history, attached_file, image_display], value="🧹 Neue Session", scale=10)
421
 
422
  with gr.Column():