matthewfarant commited on
Commit
95727ab
·
1 Parent(s): af668f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = $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)
 
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 = os.getenv('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)