Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -168,14 +168,14 @@ def search_similar_documents(prompt):
|
|
168 |
#return "\n".join(formatted_results)
|
169 |
|
170 |
with gr.Blocks() as chat:
|
171 |
-
gr.Markdown("###
|
172 |
#with gr.Row():
|
173 |
#prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
|
174 |
#search_output = gr.Textbox(label="Ähnliche Dokumente")
|
175 |
#with gr.Row():
|
176 |
#search_button = gr.Button("Suchen")
|
177 |
with gr.Row():
|
178 |
-
llm_output = gr.Textbox(label="LLM
|
179 |
with gr.Row():
|
180 |
llm_prompt_input = gr.Textbox(label="Frage an das LLM", placeholder="Gib eine Frage ein")
|
181 |
llm_submit_button = gr.Button("send")
|
@@ -204,12 +204,12 @@ with gr.Blocks() as suche:
|
|
204 |
|
205 |
|
206 |
with gr.Blocks() as speech:
|
207 |
-
gr.Markdown("###
|
208 |
|
209 |
with gr.Row():
|
210 |
sr_outputs = gr.Textbox(label="Antwort")
|
211 |
with gr.Row():
|
212 |
-
sr_inputs = gr.Microphone(type="
|
213 |
|
214 |
#sr_inputs = gr.Microphone(type="filepath")
|
215 |
#with gr.Row():
|
|
|
168 |
#return "\n".join(formatted_results)
|
169 |
|
170 |
with gr.Blocks() as chat:
|
171 |
+
gr.Markdown("### Ask your Docs", elem_classes="tab-header")
|
172 |
#with gr.Row():
|
173 |
#prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
|
174 |
#search_output = gr.Textbox(label="Ähnliche Dokumente")
|
175 |
#with gr.Row():
|
176 |
#search_button = gr.Button("Suchen")
|
177 |
with gr.Row():
|
178 |
+
llm_output = gr.Textbox(label="LLM Answer")
|
179 |
with gr.Row():
|
180 |
llm_prompt_input = gr.Textbox(label="Frage an das LLM", placeholder="Gib eine Frage ein")
|
181 |
llm_submit_button = gr.Button("send")
|
|
|
204 |
|
205 |
|
206 |
with gr.Blocks() as speech:
|
207 |
+
gr.Markdown("### Highspeed Voicebot", elem_classes="tab-header")
|
208 |
|
209 |
with gr.Row():
|
210 |
sr_outputs = gr.Textbox(label="Antwort")
|
211 |
with gr.Row():
|
212 |
+
sr_inputs = gr.Microphone(type="filepath")
|
213 |
|
214 |
#sr_inputs = gr.Microphone(type="filepath")
|
215 |
#with gr.Row():
|