Spaces:
Configuration error
Configuration error
Download app.py from dion3000/dion_creative_space: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/spaces/dion3000/dion_creative_space/resolve/main/app.py
- Command line
-
hf download hf://spaces/dion3000/dion_creative_space/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dion3000/dion_creative_space/resolve/main/app.py
692 Bytes
| import gradio as gr | |
| def welcome_message(name): | |
| return f"👋 أهلاً {name}! هذا أول تطبيق Dion Creative على Hugging Face Spaces 🚀" | |
| with gr.Blocks(theme="soft") as demo: | |
| gr.Markdown( | |
| """ | |
| # 🎨 Dion Creative AI | |
| مرحباً بك في منصّة الذكاء الصناعي الخاصة بنا. | |
| جرّب إدخال اسمك لترى كيف يرحب بك التطبيق 👇 | |
| """ | |
| ) | |
| name = gr.Textbox(label="عبدالواحد الحلاق") | |
| output = gr.Textbox(label="الرسالة") | |
| submit = gr.Button("جرّب الآن") | |
| submit.click(fn=welcome_message, inputs=name, outputs=output) | |
| demo.launch() | |