Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
question = "What is Pragyan?"
|
4 |
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."
|
@@ -9,7 +10,7 @@ description = """
|
|
9 |
"""
|
10 |
question_box = gr.Textbox(label="Question:", placeholder="What is Pragyan?", lines=2)
|
11 |
context_box = gr.Textbox(label="Context", placeholder=context, lines=10)
|
12 |
-
demo = gr.Interface(fn=
|
13 |
inputs=[question_box, context_box],
|
14 |
outputs="text",
|
15 |
title=title,
|
|
|
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 |
"""
|
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,
|