Download app.py from YTkom/README: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/YTkom/README/resolve/main/app.py
- Command line
-
hf download hf://spaces/YTkom/README/app.py
-
curl -L -o app.py https://huggingface.co/spaces/YTkom/README/resolve/main/app.py
362 Bytes
| import gradio as gr | |
| import requests | |
| # Przykładowy model do testu — można podmienić na np. Bark | |
| def generate_text(prompt): | |
| return "🎤 AI Rap o tym: " + prompt | |
| demo = gr.Interface( | |
| fn=generate_text, | |
| inputs="text", | |
| outputs="text", | |
| title="AI Generator Piosenek", | |
| description="Wpisz temat i wygeneruj tekst piosenki" | |
| ) | |
| demo.launch() | |