Spaces:
Configuration error

dion3000's picture
Create app.py
93a7b17 verified
Raw History Blame Contribute Delete
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()