cogcorp commited on
Commit
593d86e
·
1 Parent(s): 25a6eed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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)", accept=".zip"),
63
- gr.inputs.Textbox(label="User Prompt", description="Enter a prompt to guide the AI's responses.")
64
  ],
65
- outputs=gr.outputs.Textbox(label="Extracted Text", description="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 knowedlge."
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