Shauryaaa05 commited on
Commit
49ec0ea
·
verified ·
1 Parent(s): 27034ff

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -3
src/streamlit_app.py CHANGED
@@ -15,12 +15,14 @@ st.markdown("This end-to-end LLM Agent classifies your IT issue, retrieves the r
15
  # --- 1. Load Models (Cached so they only load once) ---
16
  @st.cache_resource
17
  def load_pipeline():
 
18
  # 1. Load DistilBERT Classifier from your HF Model Repo
19
  repo_id = "Shauryaaa05/AutoResolve-DistilBERT"
 
20
 
21
- distil_tokenizer = DistilBertTokenizerFast.from_pretrained(repo_id)
22
- distil_model = DistilBertForSequenceClassification.from_pretrained(repo_id)
23
-
24
  # 2. Knowledge Base & Retriever
25
  kb = [
26
  "Refund Policy: Customers are entitled to a full refund within 30 days of purchase. To process, verify the order number and issue the refund to the original payment method.",
 
15
  # --- 1. Load Models (Cached so they only load once) ---
16
  @st.cache_resource
17
  def load_pipeline():
18
+ # 1. Load DistilBERT Classifier from your HF Model Repo
19
  # 1. Load DistilBERT Classifier from your HF Model Repo
20
  repo_id = "Shauryaaa05/AutoResolve-DistilBERT"
21
+ folder_name = "autoresolve_distilbert_final"
22
 
23
+ distil_tokenizer = DistilBertTokenizerFast.from_pretrained(repo_id, subfolder=folder_name)
24
+ distil_model = DistilBertForSequenceClassification.from_pretrained(repo_id, subfolder=folder_name)
25
+
26
  # 2. Knowledge Base & Retriever
27
  kb = [
28
  "Refund Policy: Customers are entitled to a full refund within 30 days of purchase. To process, verify the order number and issue the refund to the original payment method.",