chris-iturri
Turn on debug
ae895b5
import gradio as gr
from transformers import pipeline
def sentiment_fn(sentences):
model = pipeline("sentiment-analysis", model="panyqueso/my-cool-model")
return model(sentences)
demo = gr.Interface(fn=sentiment_fn, inputs="textbox", outputs="textbox")
demo.launch(share=True, debug=True)