Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ from transformers import pipeline
|
|
| 5 |
pipe = pipeline("text-classification", model="1231czx/llama3_it_ultra_list_and_bold500")
|
| 6 |
|
| 7 |
def classify_text(text):
|
| 8 |
-
# Perform text classification using the pipeline
|
| 9 |
result = pipe(text)
|
| 10 |
return result[0]['label'], result[0]['score']
|
| 11 |
|
|
|
|
| 5 |
pipe = pipeline("text-classification", model="1231czx/llama3_it_ultra_list_and_bold500")
|
| 6 |
|
| 7 |
def classify_text(text):
|
|
|
|
| 8 |
result = pipe(text)
|
| 9 |
return result[0]['label'], result[0]['score']
|
| 10 |
|