File size: 410 Bytes
b9f5b92 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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() |