naseem9006 commited on
Commit
ca3ebdb
·
verified ·
1 Parent(s): 86993cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=4)],
40
- outputs=[gr.Textbox(label="Answer",lines=10)],
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()