TLeonidas commited on
Commit
2af6da7
·
verified ·
1 Parent(s): 2400e83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,11 +1,10 @@
1
- pip install joblib
2
  import gradio as gr
3
  import joblib
4
 
5
  # Function to load your model (adjust the path and method if needed)
6
  def load_model():
7
  # This path is relative to the root of your Hugging Face Space
8
- model_path = "./random_forest_model_3labels2.joblib"
9
  model = joblib.load(model_path)
10
  return model
11
 
 
 
1
  import gradio as gr
2
  import joblib
3
 
4
  # Function to load your model (adjust the path and method if needed)
5
  def load_model():
6
  # This path is relative to the root of your Hugging Face Space
7
+ model_path = "./en-hate-speech-detection-3label"
8
  model = joblib.load(model_path)
9
  return model
10