Download app.py from ID2223/hackernews_upvotes_predictor_model: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/ID2223/hackernews_upvotes_predictor_model/resolve/main/app.py
- Command line
-
hf download hf://ID2223/hackernews_upvotes_predictor_model/app.py
-
curl -L -o app.py https://huggingface.co/ID2223/hackernews_upvotes_predictor_model/resolve/main/app.py
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() |