Spaces:
Sleeping
Sleeping
rebuild
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ tokenizer = AutoTokenizer.from_pretrained("deepset/roberta-base-squad2")
|
|
| 6 |
|
| 7 |
onnx_qa = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
| 8 |
|
| 9 |
-
question = "What's my name
|
| 10 |
context = "My name is Philipp and I live in Nuremberg."
|
| 11 |
def get_answer(question):
|
| 12 |
pred = onnx_qa(question, context)
|
|
|
|
| 6 |
|
| 7 |
onnx_qa = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
| 8 |
|
| 9 |
+
question = "What's my name??"
|
| 10 |
context = "My name is Philipp and I live in Nuremberg."
|
| 11 |
def get_answer(question):
|
| 12 |
pred = onnx_qa(question, context)
|