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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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", description="Upload a Zip file containing ONLY PDF files from which the knowledge will be extracted."),
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 from the AI."),
66
  title="PDF Text Extractor",
67
- description="This Cognitive Agent allows you to prompt a corpus knowledge, uploaded as a single Zip file, using OpenAI's GPT-3 model."
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)", 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