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