Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ def get_answer(file, question):
|
|
36 |
return answer["answer"]
|
37 |
|
38 |
demo = gr.Interface(fn=get_answer,
|
39 |
-
inputs=[gr.File(label="Upload your file"),gr.Textbox(label="Ask any Question related to file",lines=
|
40 |
-
outputs=[gr.Textbox(label="Answer",lines=
|
41 |
title="@Naseem GenAI Project 2: Question Answering based on file provided",
|
42 |
description="THIS APPLICATION WILL PROVIDE ANSWER BASED ON FILE PROVIDED")
|
43 |
demo.launch()
|
|
|
36 |
return answer["answer"]
|
37 |
|
38 |
demo = gr.Interface(fn=get_answer,
|
39 |
+
inputs=[gr.File(label="Upload your file"),gr.Textbox(label="Ask any Question related to file",lines=1)],
|
40 |
+
outputs=[gr.Textbox(label="Answer",lines=2)],
|
41 |
title="@Naseem GenAI Project 2: Question Answering based on file provided",
|
42 |
description="THIS APPLICATION WILL PROVIDE ANSWER BASED ON FILE PROVIDED")
|
43 |
demo.launch()
|