Muhammad Anas Akhtar commited on
Commit
838d2fb
·
verified ·
1 Parent(s): 4e37ec9

Update app.py

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