Spaces:
Runtime error
Runtime error
Kh commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
-
from
|
| 4 |
-
from
|
| 5 |
-
from
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
# Load and preprocess the dataset
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from sklearn.feature_extraction.text import TfidfVectorizer
|
| 3 |
+
from sklearn.model_selection import train_test_split
|
| 4 |
+
from sklearn.linear_model import LogisticRegression
|
| 5 |
+
from sklearn.metrics import accuracy_score
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
# Load and preprocess the dataset
|