Spaces:
Runtime error
Runtime error
File size: 275 Bytes
9447344 400cc4e 9447344 400cc4e 9447344 400cc4e 9447344 |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from transformers import pipeline
def greet(name):
return "Hello " + name + '!!!'
pipe = pipeline('sentiment-analysis')
iface = gr.Interface(fn=greet, inputs='text', outputs='text')
# to share public link - set share=True in launch()
iface.launch() |