Update app.py
Browse files
app.py
CHANGED
@@ -121,8 +121,8 @@ def greet(name):
|
|
121 |
# Create the Gradio interface
|
122 |
with gr.Blocks(theme=gr.themes.Default()) as demo:
|
123 |
with gr.Tab("Indexig"):
|
124 |
-
|
125 |
-
pdf_input = gr.Textbox(label="PDF input")
|
126 |
index_button = gr.Button("Index PDF")
|
127 |
load_sample = gr.Button("Alternatively, Load and Index [Attention Is All You Need.pdf] as a Sample")
|
128 |
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.")
|
|
|
121 |
# Create the Gradio interface
|
122 |
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 |
index_button = gr.Button("Index PDF")
|
127 |
load_sample = gr.Button("Alternatively, Load and Index [Attention Is All You Need.pdf] as a Sample")
|
128 |
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.")
|