Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,12 +59,12 @@ def pdf_to_text(file, user_prompt):
|
|
| 59 |
iface = gr.Interface(
|
| 60 |
fn=pdf_to_text,
|
| 61 |
inputs=[
|
| 62 |
-
gr.inputs.File(label="PDF File (Upload a Zip file containing ONLY PDF files)"
|
| 63 |
-
gr.inputs.Textbox(label="User Prompt
|
| 64 |
],
|
| 65 |
-
outputs=gr.outputs.Textbox(label="
|
| 66 |
title="PDF Text Extractor",
|
| 67 |
-
description="This app extracts knowledge from the uploaded Zip files. Using a Cognitive Agent you can interact with that
|
| 68 |
)
|
| 69 |
iface.launch(share=False)
|
| 70 |
|
|
|
|
| 59 |
iface = gr.Interface(
|
| 60 |
fn=pdf_to_text,
|
| 61 |
inputs=[
|
| 62 |
+
gr.inputs.File(label="PDF File (Upload a Zip file containing ONLY PDF files)"),
|
| 63 |
+
gr.inputs.Textbox(label="User Prompt (Enter a prompt to guide the AI's responses)")
|
| 64 |
],
|
| 65 |
+
outputs=gr.outputs.Textbox(label="Cognitive Agent Response"),
|
| 66 |
title="PDF Text Extractor",
|
| 67 |
+
description="This app extracts knowledge from the uploaded Zip files. Using a Cognitive Agent you can interact with that knowledge."
|
| 68 |
)
|
| 69 |
iface.launch(share=False)
|
| 70 |
|