Spaces:
Configuration error
Configuration error
Sync App files
Browse files
README.md
CHANGED
|
@@ -1,7 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
sdk: gradio
|
| 4 |
-
---
|
| 5 |
title: Drug Classification
|
| 6 |
emoji: 📉
|
| 7 |
colorFrom: purple
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
title: Drug Classification
|
| 2 |
emoji: 📉
|
| 3 |
colorFrom: purple
|
app.py
CHANGED
|
@@ -1,16 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import warnings
|
| 3 |
-
from sklearn.exceptions import InconsistentVersionWarning
|
| 4 |
-
|
| 5 |
-
|
| 6 |
import joblib
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
-
# Suppress the version warnings
|
| 12 |
-
warnings.filterwarnings("ignore", category=InconsistentVersionWarning)
|
| 13 |
-
|
| 14 |
# Explicitly specify trusted types
|
| 15 |
trusted_types = [
|
| 16 |
"sklearn.pipeline.Pipeline",
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import joblib
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Explicitly specify trusted types
|
| 8 |
trusted_types = [
|
| 9 |
"sklearn.pipeline.Pipeline",
|