Vivekkrishu commited on
Commit
4574d7c
·
1 Parent(s): b333224
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -1,16 +1,11 @@
1
  # app.py at the root of your project
2
  import gradio as gr
3
- import sys
4
  import joblib
5
  from src.preprocess import clean_text
6
- from src.predict import chatbot_response as predict_response
7
 
8
- # Load trained model and responses (from src/train if saved there)
9
- model_path = "src/train/models/lms_chatbot.joblib"
10
- responses_path = "src/train/models/responses.joblib"
11
-
12
- model = joblib.load(model_path)
13
- responses = joblib.load(responses_path)
14
 
15
  def chatbot_response(user_input):
16
  """Predict the tag and return the corresponding response."""
 
1
  # app.py at the root of your project
2
  import gradio as gr
 
3
  import joblib
4
  from src.preprocess import clean_text
 
5
 
6
+ # Load trained model and responses
7
+ model = joblib.load("models/lms_chatbot.joblib")
8
+ responses = joblib.load("models/responses.joblib")
 
 
 
9
 
10
  def chatbot_response(user_input):
11
  """Predict the tag and return the corresponding response."""