ok
Browse files
app.py
CHANGED
@@ -80,16 +80,14 @@ def summarize_pdf (pdf_file_path, custom_prompt=""):
|
|
80 |
summary = ask(input_pdf_question)
|
81 |
return summary
|
82 |
|
83 |
-
|
|
|
84 |
gradio_app = gr.Interface(
|
85 |
-
upload_file=gr.File(label="upload file", sources=['upload'],file_count="multiple")),
|
86 |
-
input_pdf_name = gr.Dropdown(['testrag.pdf', 'testrag.pdf'], label="file"),
|
87 |
input_pdf_question = gr.components.Textbox(label="Entrer la question",value="je dois repeindre un mur de 30 m2 avec de la peinture PEINTURE MATE a lille, quel est le prix final ?"),
|
88 |
output_summary = gr.components.Textbox(label=" ")
|
89 |
|
90 |
interface = gr.Interface(
|
91 |
fn = summarize_pdf,
|
92 |
-
inputs = input_pdf_name,
|
93 |
inputs = input_pdf_question,
|
94 |
outputs = output_summary,
|
95 |
title = "PDF question",
|
|
|
80 |
summary = ask(input_pdf_question)
|
81 |
return summary
|
82 |
|
83 |
+
#upload_file=gr.File(label="upload file", sources=['upload'],file_count="multiple")),
|
84 |
+
# input_pdf_name = gr.Dropdown(['testrag.pdf', 'testrag.pdf'], label="file"),
|
85 |
gradio_app = gr.Interface(
|
|
|
|
|
86 |
input_pdf_question = gr.components.Textbox(label="Entrer la question",value="je dois repeindre un mur de 30 m2 avec de la peinture PEINTURE MATE a lille, quel est le prix final ?"),
|
87 |
output_summary = gr.components.Textbox(label=" ")
|
88 |
|
89 |
interface = gr.Interface(
|
90 |
fn = summarize_pdf,
|
|
|
91 |
inputs = input_pdf_question,
|
92 |
outputs = output_summary,
|
93 |
title = "PDF question",
|