Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,18 +87,18 @@ def search_similar_documents(prompt):
|
|
87 |
|
88 |
with gr.Blocks() as chat:
|
89 |
gr.Markdown("### Chat", elem_classes="tab-header")
|
90 |
-
with gr.Row():
|
91 |
-
prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
|
92 |
-
search_output = gr.Textbox(label="Ähnliche Dokumente")
|
93 |
-
with gr.Row():
|
94 |
-
search_button = gr.Button("Suchen")
|
95 |
with gr.Row():
|
96 |
llm_prompt_input = gr.Textbox(label="Frage an das LLM", placeholder="Gib eine Frage ein")
|
97 |
llm_output = gr.Textbox(label="LLM Antwort")
|
98 |
with gr.Row():
|
99 |
llm_submit_button = gr.Button("send")
|
100 |
|
101 |
-
search_button.click(search_similar_documents, inputs=prompt_input, outputs=search_output)
|
102 |
llm_submit_button.click(ask_llm, inputs=llm_prompt_input, outputs=llm_output)
|
103 |
|
104 |
with gr.Blocks() as upload:
|
|
|
87 |
|
88 |
with gr.Blocks() as chat:
|
89 |
gr.Markdown("### Chat", elem_classes="tab-header")
|
90 |
+
#with gr.Row():
|
91 |
+
#prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
|
92 |
+
#search_output = gr.Textbox(label="Ähnliche Dokumente")
|
93 |
+
#with gr.Row():
|
94 |
+
#search_button = gr.Button("Suchen")
|
95 |
with gr.Row():
|
96 |
llm_prompt_input = gr.Textbox(label="Frage an das LLM", placeholder="Gib eine Frage ein")
|
97 |
llm_output = gr.Textbox(label="LLM Antwort")
|
98 |
with gr.Row():
|
99 |
llm_submit_button = gr.Button("send")
|
100 |
|
101 |
+
#search_button.click(search_similar_documents, inputs=prompt_input, outputs=search_output)
|
102 |
llm_submit_button.click(ask_llm, inputs=llm_prompt_input, outputs=llm_output)
|
103 |
|
104 |
with gr.Blocks() as upload:
|