jchen8000 commited on
Commit
66eeb2c
·
verified ·
1 Parent(s): 56bd76e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -121,8 +121,9 @@ def greet(name):
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.")
 
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
+ pdf_input = gr.Files(file_count="multiple", file_types=["pdf"], interactive=True, 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.")