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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.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.")
 
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.")