Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,11 @@ from transformers import AutoModelForSequenceClassification
|
|
6 |
|
7 |
# model = AutoModelForSequenceClassification.from_pretrained("Alesteba/deep_model_07")
|
8 |
|
9 |
-
from huggingface_hub import from_pretrained_keras
|
10 |
-
model = from_pretrained_keras("Alesteba/deep_model_07")
|
|
|
|
|
|
|
11 |
|
12 |
def predict(prompt):
|
13 |
return model.predict(prompt)[0]
|
|
|
6 |
|
7 |
# model = AutoModelForSequenceClassification.from_pretrained("Alesteba/deep_model_07")
|
8 |
|
9 |
+
# from huggingface_hub import from_pretrained_keras
|
10 |
+
# model = from_pretrained_keras("Alesteba/deep_model_07")
|
11 |
+
|
12 |
+
from huggingface_hub import from_pretrained_fastai
|
13 |
+
learner = from_pretrained_fastai("Alesteba/deep_model_07")
|
14 |
|
15 |
def predict(prompt):
|
16 |
return model.predict(prompt)[0]
|