nalinaksh commited on
Commit
4b5cbd3
·
1 Parent(s): 1ae8f9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
- from QA_Pipeline import *
 
3
 
4
  question = "What is Pragyan?"
5
  context = "Chandrayaan-3 is the third and most recent lunar Indian Space Research exploration mission under the Chandrayaan programme of ISRO. It consists of a lander named Vikram and a rover named Pragyan similar to Chandrayaan-2. Its propulsion module behaves like a communication relay satellite."
@@ -10,7 +11,7 @@ description = """
10
  """
11
  question_box = gr.Textbox(label="Question:", placeholder="What is Pragyan?", lines=2)
12
  context_box = gr.Textbox(label="Context", placeholder=context, lines=10)
13
- demo = gr.Interface(fn=question_answering_pipeline,
14
  inputs=[question_box, context_box],
15
  outputs="text",
16
  title=title,
 
1
  import gradio as gr
2
+ #from QA_Pipeline import *
3
+ from QA_Tensorflow import *
4
 
5
  question = "What is Pragyan?"
6
  context = "Chandrayaan-3 is the third and most recent lunar Indian Space Research exploration mission under the Chandrayaan programme of ISRO. It consists of a lander named Vikram and a rover named Pragyan similar to Chandrayaan-2. Its propulsion module behaves like a communication relay satellite."
 
11
  """
12
  question_box = gr.Textbox(label="Question:", placeholder="What is Pragyan?", lines=2)
13
  context_box = gr.Textbox(label="Context", placeholder=context, lines=10)
14
+ demo = gr.Interface(fn=question_answering_tensorflow,
15
  inputs=[question_box, context_box],
16
  outputs="text",
17
  title=title,