Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,19 +71,23 @@ with gr.Blocks() as demo:
|
|
71 |
|
72 |
with gr.Row():
|
73 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
74 |
-
submit_button = gr.Button("Hochladen")
|
75 |
upload_output = gr.Textbox(label="Upload Status")
|
76 |
-
|
|
|
77 |
with gr.Row():
|
78 |
prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
|
|
|
|
|
|
|
79 |
search_button = gr.Button("Suchen")
|
80 |
-
|
81 |
-
|
82 |
with gr.Row():
|
83 |
llm_prompt_input = gr.Textbox(label="Frage an das LLM", placeholder="Gib eine Frage ein")
|
84 |
-
llm_submit_button = gr.Button("Fragen")
|
85 |
llm_output = gr.Textbox(label="LLM Antwort")
|
86 |
-
|
|
|
87 |
submit_button.click(process_pdf, inputs=file_input, outputs=upload_output)
|
88 |
search_button.click(search_similar_documents, inputs=prompt_input, outputs=search_output)
|
89 |
llm_submit_button.click(ask_llm, inputs=llm_prompt_input, outputs=llm_output)
|
|
|
71 |
|
72 |
with gr.Row():
|
73 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
74 |
+
#submit_button = gr.Button("Hochladen")
|
75 |
upload_output = gr.Textbox(label="Upload Status")
|
76 |
+
with gr.Row():
|
77 |
+
submit_button = gr.Button("Suchen")
|
78 |
with gr.Row():
|
79 |
prompt_input = gr.Textbox(label="Suche nach ähnlichen Dokumenten", placeholder="Gib einen Suchbegriff ein")
|
80 |
+
#search_button = gr.Button("Suchen")
|
81 |
+
search_output = gr.Markdown(gr.Textbox(label="Ähnliche Dokumente"))
|
82 |
+
with gr.Row():
|
83 |
search_button = gr.Button("Suchen")
|
84 |
+
|
|
|
85 |
with gr.Row():
|
86 |
llm_prompt_input = gr.Textbox(label="Frage an das LLM", placeholder="Gib eine Frage ein")
|
87 |
+
#llm_submit_button = gr.Button("Fragen")
|
88 |
llm_output = gr.Textbox(label="LLM Antwort")
|
89 |
+
with gr.Row():
|
90 |
+
llm_submit_button = gr.Button("Suchen")
|
91 |
submit_button.click(process_pdf, inputs=file_input, outputs=upload_output)
|
92 |
search_button.click(search_similar_documents, inputs=prompt_input, outputs=search_output)
|
93 |
llm_submit_button.click(ask_llm, inputs=llm_prompt_input, outputs=llm_output)
|