Enric Perpinyà Pitarch
Add app.py with greet function and Gradio interface
b9f5b92
raw
history blame contribute delete
410 Bytes
from transformers import pipeline
import gradio as gr
# transcriber = pipeline("automatic-speech-recognition", model="ID2223/hackernews_upvotes_predictor")
def greet(name):
return "Hello " + name + "!!"
with gr.Blocks(
theme=gr.themes.Default(font=[gr.themes.GoogleFont("IBM Plex Mono"), "Arial", "sans-serif"])
) as demo:
gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()