Spaces:
Running on Zero
Running on Zero
Lord-Raven commited on
Commit ·
30694fc
1
Parent(s): 97c46fe
Trying to use ONNX model.
Browse files
app.py
CHANGED
|
@@ -7,8 +7,6 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 7 |
from transformers import pipeline
|
| 8 |
from optimum.onnxruntime import ORTModelForQuestionAnswering
|
| 9 |
|
| 10 |
-
class OnnxTokenClassificationPipeline(TokenClassificationPipeline):
|
| 11 |
-
|
| 12 |
# CORS Config
|
| 13 |
app = FastAPI()
|
| 14 |
|
|
|
|
| 7 |
from transformers import pipeline
|
| 8 |
from optimum.onnxruntime import ORTModelForQuestionAnswering
|
| 9 |
|
|
|
|
|
|
|
| 10 |
# CORS Config
|
| 11 |
app = FastAPI()
|
| 12 |
|