Spaces:
Runtime error
Runtime error
Benjamin Consolvo
commited on
Commit
·
81fdd84
1
Parent(s):
b561fc0
back to the original
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
import time
|
4 |
|
5 |
-
|
6 |
-
sparse_qa_pipeline = pipeline(task="question-answering",model="Intel/distilbert-base-uncased-squadv1.1-sparse-80-1x4-block-pruneofa-int8")
|
7 |
|
8 |
-
|
9 |
-
dense_qa_pipeline = pipeline(task="question-answering",model="distilbert-base-uncased-distilled-squad")
|
10 |
|
11 |
def greet(name):
|
12 |
return "Hello " + name + "!!"
|
|
|
2 |
from transformers import pipeline
|
3 |
import time
|
4 |
|
5 |
+
sparse_qa_pipeline = pipeline(task="question-answering",model="Intel/bert-base-uncased-squadv1.1-sparse-80-1x4-block-pruneofa")
|
6 |
+
# sparse_qa_pipeline = pipeline(task="question-answering",model="Intel/distilbert-base-uncased-squadv1.1-sparse-80-1x4-block-pruneofa-int8")
|
7 |
|
8 |
+
dense_qa_pipeline = pipeline(task="question-answering",model="csarron/bert-base-uncased-squad-v1")
|
9 |
+
# dense_qa_pipeline = pipeline(task="question-answering",model="distilbert-base-uncased-distilled-squad")
|
10 |
|
11 |
def greet(name):
|
12 |
return "Hello " + name + "!!"
|