Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def extract_text(file):
|
|
8 |
|
9 |
#Ask Dr Ahmad about which LLM to use and if we have a token for it
|
10 |
with gr.Blocks() as demo:
|
11 |
-
file_input = gr.File(label="Upload a research paper as a pdf file", file_types=["pdf"])
|
12 |
text_output = gr.Textbox(label="Extracted Text")
|
13 |
|
14 |
file_input.change(fn=extract_text, inputs=file_input, outputs=text_output)
|
|
|
8 |
|
9 |
#Ask Dr Ahmad about which LLM to use and if we have a token for it
|
10 |
with gr.Blocks() as demo:
|
11 |
+
file_input = gr.File(label="Upload a research paper as a pdf file", file_types=[".pdf"])
|
12 |
text_output = gr.Textbox(label="Extracted Text")
|
13 |
|
14 |
file_input.change(fn=extract_text, inputs=file_input, outputs=text_output)
|