Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,3 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
classifier = pipeline("news-classifier", model="Alesteba/deep-model-07")
|
| 6 |
-
# model = pipeline("Alesteba/deep-model-07")
|
| 7 |
-
|
| 8 |
-
def predict(prompt):
|
| 9 |
-
return classifier(prompt)
|
| 10 |
-
|
| 11 |
-
gr.Interface(fn=predict, inputs="text", outputs="text").launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
gr.Interface.load("models/Alesteba/deep_model_07").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|