mgokg commited on
Commit
2080a5e
·
verified ·
1 Parent(s): ec7914b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -65,6 +65,7 @@ def search_similar_documents(prompt):
65
  return "\n".join(formatted_results)
66
 
67
  with gr.Blocks() as chat:
 
68
  with gr.Row():
69
  prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
70
  search_output = gr.Textbox(label="Ähnliche Dokumente")
@@ -80,6 +81,7 @@ with gr.Blocks() as chat:
80
  llm_submit_button.click(ask_llm, inputs=llm_prompt_input, outputs=llm_output)
81
 
82
  with gr.Blocks() as upload:
 
83
  with gr.Row():
84
  file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
85
  upload_output = gr.Textbox(label="Upload Status")
@@ -90,7 +92,6 @@ with gr.Blocks() as upload:
90
  # Erstelle die Gradio-Schnittstelle
91
  with gr.Blocks() as demo:
92
  gr.TabbedInterface(
93
- [chat, upload],
94
  [chat, upload]
95
  )
96
 
 
65
  return "\n".join(formatted_results)
66
 
67
  with gr.Blocks() as chat:
68
+ gr.Markdown("### Chat", elem_classes="tab-header")
69
  with gr.Row():
70
  prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
71
  search_output = gr.Textbox(label="Ähnliche Dokumente")
 
81
  llm_submit_button.click(ask_llm, inputs=llm_prompt_input, outputs=llm_output)
82
 
83
  with gr.Blocks() as upload:
84
+ gr.Markdown("### upload", elem_classes="tab-header")
85
  with gr.Row():
86
  file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
87
  upload_output = gr.Textbox(label="Upload Status")
 
92
  # Erstelle die Gradio-Schnittstelle
93
  with gr.Blocks() as demo:
94
  gr.TabbedInterface(
 
95
  [chat, upload]
96
  )
97