Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
from transformers import pipeline
|
4 |
-
|
5 |
-
qa = pipeline("question-answering")
|
6 |
-
|
7 |
-
def question_answering(question, context):
|
8 |
-
return qa(question, context)["answer"]
|
9 |
-
|
10 |
question = "What is Pragyan?"
|
11 |
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."
|
12 |
|
|
|
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."
|
5 |
|