Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
123 |
with gr.Tab("Indexig"):
|
124 |
# pdf_input = gr.File(label="Upload PDF", file_types=[".pdf"])
|
125 |
# pdf_input = gr.Textbox(label="PDF input")
|
126 |
-
pdf_input = gr.
|
127 |
index_button = gr.Button("Index PDF")
|
128 |
load_sample = gr.Button("Alternatively, Load and Index [Attention Is All You Need.pdf] as a Sample")
|
129 |
sample_description = gr.Markdown("This sample PDF is a seminal paper in the field of machine learning, titled 'Attention Is All You Need' at https://arxiv.org/abs/1706.03762. It introduces the Transformer model, which has become foundational in natural language processing.")
|
|
|
123 |
with gr.Tab("Indexig"):
|
124 |
# pdf_input = gr.File(label="Upload PDF", file_types=[".pdf"])
|
125 |
# pdf_input = gr.Textbox(label="PDF input")
|
126 |
+
pdf_input = gr.File(file_count="single", file_types=[".pdf"], label="Upload PDF documents")
|
127 |
index_button = gr.Button("Index PDF")
|
128 |
load_sample = gr.Button("Alternatively, Load and Index [Attention Is All You Need.pdf] as a Sample")
|
129 |
sample_description = gr.Markdown("This sample PDF is a seminal paper in the field of machine learning, titled 'Attention Is All You Need' at https://arxiv.org/abs/1706.03762. It introduces the Transformer model, which has become foundational in natural language processing.")
|