Update app.py
Browse filesmodel name connected
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import torch
|
|
| 5 |
# Replace this with your actual model name
|
| 6 |
model_name = "willco-afk/my-model-name"
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
# Load the model and tokenizer from Hugging Face Hub
|
| 9 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
|
| 5 |
# Replace this with your actual model name
|
| 6 |
model_name = "willco-afk/my-model-name"
|
| 7 |
|
| 8 |
+
# Define the model name correctly
|
| 9 |
+
model_name = "willco-afk/my-model-name"
|
| 10 |
+
|
| 11 |
# Load the model and tokenizer from Hugging Face Hub
|
| 12 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|