test-llama / app.py
trumble2024's picture
updated
400cc4e
raw
history blame
275 Bytes
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()