Spaces:
Runtime error
Runtime error
Commit ·
af668f4
1
Parent(s): c141a99
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def prepare_catalog():
|
|
| 51 |
# Your existing decision function
|
| 52 |
def decision(user_input, catalog, product_name_catalog):
|
| 53 |
# Initialize the model
|
| 54 |
-
pipe = pipeline("text-classification", model="matthewfarant/indobert-fertilizer-classifier", token =
|
| 55 |
|
| 56 |
# Extract formula
|
| 57 |
user_input_formula = re.findall(r'\d{1,2}\s*[- ]\s*\d{1,2}\s*[- ]\s*\d{1,2}', user_input)
|
|
|
|
| 51 |
# Your existing decision function
|
| 52 |
def decision(user_input, catalog, product_name_catalog):
|
| 53 |
# Initialize the model
|
| 54 |
+
pipe = pipeline("text-classification", model="matthewfarant/indobert-fertilizer-classifier", token = $HF_MY_TOKEN)
|
| 55 |
|
| 56 |
# Extract formula
|
| 57 |
user_input_formula = re.findall(r'\d{1,2}\s*[- ]\s*\d{1,2}\s*[- ]\s*\d{1,2}', user_input)
|