Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ from keras.models import load_model
|
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
# Load the model and data
|
| 8 |
-
model = load_model("
|
| 9 |
-
train = pd.read_csv("
|
| 10 |
|
| 11 |
# Preprocess the text datas
|
| 12 |
text = train["text"].str.lower() # convert to lowercase
|
|
|
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
# Load the model and data
|
| 8 |
+
model = load_model("text_prediction_model.h5")
|
| 9 |
+
train = pd.read_csv("train.csv", usecols=[2])
|
| 10 |
|
| 11 |
# Preprocess the text datas
|
| 12 |
text = train["text"].str.lower() # convert to lowercase
|