Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,6 @@ classifier = pipeline("news-classifier", model="Alesteba/deep-model-07")
|
|
| 6 |
# model = pipeline("Alesteba/deep-model-07")
|
| 7 |
|
| 8 |
def predict(prompt):
|
| 9 |
-
|
| 10 |
-
return completion
|
| 11 |
|
| 12 |
gr.Interface(fn=predict, inputs="text", outputs="text").launch()
|
|
|
|
| 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()
|