Download app.py from kepung/test: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/spaces/kepung/test/resolve/main/app.py
- Command line
-
hf download hf://spaces/kepung/test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/kepung/test/resolve/main/app.py
231 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| pipe = pipeline("text-generation", model="Qwen/Qwen2.5-7B") | |
| def generate(prompt): | |
| return pipe(prompt)[0]["generated_text"] | |
| gr.Interface(generate, "text", "text").launch() |