Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ except Exception as e:
|
|
24 |
st.error(f"Error loading model: {e}")
|
25 |
|
26 |
# Load the tokenizer (ensure it's the one used during training)
|
27 |
-
|
28 |
|
29 |
# Load the dataset
|
30 |
df = pd.read_csv('df1.csv')
|
|
|
24 |
st.error(f"Error loading model: {e}")
|
25 |
|
26 |
# Load the tokenizer (ensure it's the one used during training)
|
27 |
+
tokenizer = joblib.load('tokenizer.pkl') # Update this to the correct path
|
28 |
|
29 |
# Load the dataset
|
30 |
df = pd.read_csv('df1.csv')
|