Spaces:
Running
Running
Chidam Gopal
commited on
Commit
•
9c36e3e
1
Parent(s):
1c56cce
fix model url f-string
Browse files- infer_intent.py +1 -1
infer_intent.py
CHANGED
@@ -19,7 +19,7 @@ class IntentClassifier:
|
|
19 |
|
20 |
self.tokenizer = AutoTokenizer.from_pretrained("Mozilla/mobilebert-uncased-finetuned-LoRA-intent-classifier")
|
21 |
|
22 |
-
model_url = "https://huggingface.co/Mozilla/mobilebert-uncased-finetuned-LoRA-intent-classifier/resolve/{VERSION}/onnx/model_quantized.onnx"
|
23 |
model_dir_path = "models"
|
24 |
model_path = f"{model_dir_path}/mobilebert-uncased-finetuned-LoRA-intent-classifier_model_quantized.onnx"
|
25 |
if not os.path.exists(model_dir_path):
|
|
|
19 |
|
20 |
self.tokenizer = AutoTokenizer.from_pretrained("Mozilla/mobilebert-uncased-finetuned-LoRA-intent-classifier")
|
21 |
|
22 |
+
model_url = f"https://huggingface.co/Mozilla/mobilebert-uncased-finetuned-LoRA-intent-classifier/resolve/{VERSION}/onnx/model_quantized.onnx"
|
23 |
model_dir_path = "models"
|
24 |
model_path = f"{model_dir_path}/mobilebert-uncased-finetuned-LoRA-intent-classifier_model_quantized.onnx"
|
25 |
if not os.path.exists(model_dir_path):
|