Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import torch
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
-
model = DistilBertForSequenceClassification.from_pretrained("
|
8 |
-
tokenizer = DistilBertTokenizerFast.from_pretrained("
|
9 |
|
10 |
@app.post("/predict/")
|
11 |
async def predict(text: str):
|
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
+
model = DistilBertForSequenceClassification.from_pretrained("ADKU/ResearchGPT_model")
|
8 |
+
tokenizer = DistilBertTokenizerFast.from_pretrained("ADKU/ResearchGPT_model")
|
9 |
|
10 |
@app.post("/predict/")
|
11 |
async def predict(text: str):
|