mgokg commited on
Commit
85718b7
·
verified ·
1 Parent(s): 4e6d3b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -124,10 +124,19 @@ with gr.Blocks() as upload:
124
  submit_button = gr.Button("upload")
125
  submit_button.click(process_pdf, inputs=file_input, outputs=upload_output)
126
 
 
 
 
 
 
 
 
 
 
127
  # Erstelle die Gradio-Schnittstelle
128
  with gr.Blocks() as demo:
129
  gr.TabbedInterface(
130
- [chat, upload]
131
  )
132
 
133
 
 
124
  submit_button = gr.Button("upload")
125
  submit_button.click(process_pdf, inputs=file_input, outputs=upload_output)
126
 
127
+ with gr.Blocks() as suche:
128
+ gr.Markdown("### suche", elem_classes="tab-header")
129
+ with gr.Row():
130
+ prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
131
+ with gr.Row():
132
+ search_output = gr.Textbox(label="Ähnliche Dokumente")
133
+ with gr.Row():
134
+ search_button = gr.Button("Suchen")
135
+
136
  # Erstelle die Gradio-Schnittstelle
137
  with gr.Blocks() as demo:
138
  gr.TabbedInterface(
139
+ [chat, upload, suche]
140
  )
141
 
142