jchen8000 commited on
Commit
c94b2b4
·
verified ·
1 Parent(s): d626ad8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -146,6 +146,7 @@ def greet(name):
146
  with gr.Blocks(theme=gr.themes.Default()) as demo:
147
  with gr.Tab("Indexig"):
148
  # pdf_input = gr.File(label="Upload PDF", file_types=[".pdf"])
 
149
  index_button = gr.Button("Index PDF")
150
  load_sample = gr.Button("Alternatively, Load and Index [Attention Is All You Need.pdf] as a Sample")
151
  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.")
 
146
  with gr.Blocks(theme=gr.themes.Default()) as demo:
147
  with gr.Tab("Indexig"):
148
  # pdf_input = gr.File(label="Upload PDF", file_types=[".pdf"])
149
+ pdf_input = gr.Textbox(label="PDF input")
150
  index_button = gr.Button("Index PDF")
151
  load_sample = gr.Button("Alternatively, Load and Index [Attention Is All You Need.pdf] as a Sample")
152
  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.")