Spaces:
Runtime error
Runtime error
File size: 292 Bytes
9ddbf53 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from transformers import pipeline
classifier = pipeline("text-classification", model="karimmohamed19/final")
def classify(text):
result = classifier(text)
return result[0]['label']
iface = gr.Interface(fn=classify, inputs="text", outputs="text")
iface.launch()
|