Muhammad Anas Akhtar
commited on
Update app.py
Browse files
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="
|
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()
|