Muhammad Anas Akhtar commited on
Commit
d5ea22f
·
verified ·
1 Parent(s): 4b93a41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,9 +32,9 @@ def get_answer(file, question):
32
  return answer["answer"]
33
 
34
  demo = gr.Interface(fn=get_answer,
35
- inputs=[gr.File(label="Upload your file"), gr.Textbox(label="Input your question",lines=1)],
36
  outputs=[gr.Textbox(label="Answer text",lines=1)],
37
- title="@GenAILearniverse Project 5: Document Q & A",
38
  description="THIS APPLICATION WILL BE USED TO ANSER QUESTIONS BASED ON CONTEXT PROVIDED.")
39
 
40
  demo.launch()
 
32
  return answer["answer"]
33
 
34
  demo = gr.Interface(fn=get_answer,
35
+ inputs=[gr.File(label="Upload your file (.txt)"), gr.Textbox(label="Input your question",lines=1)],
36
  outputs=[gr.Textbox(label="Answer text",lines=1)],
37
+ title="Document Question And Answer
38
  description="THIS APPLICATION WILL BE USED TO ANSER QUESTIONS BASED ON CONTEXT PROVIDED.")
39
 
40
  demo.launch()