Spaces:
Sleeping
Sleeping
Renamed input
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import pipeline
|
|
| 3 |
|
| 4 |
pipeline = pipeline(task="text-classification", model="databoyface/distilbert-base-cased-ome-v4.2")
|
| 5 |
|
| 6 |
-
def predict(
|
| 7 |
-
predictions = pipeline(
|
| 8 |
return {p["label"]: p["score"] for p in predictions}
|
| 9 |
|
| 10 |
gradio_app = gr.Interface(
|
|
|
|
| 3 |
|
| 4 |
pipeline = pipeline(task="text-classification", model="databoyface/distilbert-base-cased-ome-v4.2")
|
| 5 |
|
| 6 |
+
def predict(input):
|
| 7 |
+
predictions = pipeline(input)
|
| 8 |
return {p["label"]: p["score"] for p in predictions}
|
| 9 |
|
| 10 |
gradio_app = gr.Interface(
|