Bazedgul commited on
Commit
ef7264e
·
1 Parent(s): 64ba4f8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ title = 'BG Question Answering APP'
5
+ context = "My name is Bazed Gul. I love tea and drink it regularly"
6
+ question = "What do I love?"
7
+
8
+ question_answerer = pipeline("question-answering")
9
+ interface = gr.Interface.from_pipeline(question_answerer,
10
+ title = title,
11
+ theme = "grass",
12
+ examples = [[context, question]]).launch()