Spaces:
Runtime error
Runtime error
File size: 414 Bytes
2be97d5 1452586 7dde59b b841138 7dde59b 2be97d5 22b2516 171cc8c |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
print("hello")
# gr.load("NousResearch/Yarn-Mistral-7b-128k",src="models").launch()
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
def get_class(input):
return classifier("I've been waiting for a HuggingFace course my whole life.")
iface = gr.Interface(fn=get_class, inputs="text", outputs=['text'], title='hello', descriptioin='play around')
iface.launch() |