Update app.py
Browse files
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 = "./
|
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 |
|