| import gradio as gr | |
| def welcome(name): | |
| return f"Welcome to GmasterAI, {name}!" | |
| with gr.Blocks() as demo: | |
| gr.Markdown( | |
| """ | |
| # Welcome to experience GmasterAI ! | |
| ### an exquisite AI drawing application. | |
| New users will receive 10 free trial opportunities upon registration. | |
| ### Website: <a href="https://www.gmaster.ai">https://www.gmaster.ai</a> | |
| <a title="GmasterAI, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons" href="https://www.gmaster.ai/"><img width="512" alt="Gmaster.ai" src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Gmaster.ai.jpg/512px-Gmaster.ai.jpg"></a> | |
| """) | |
| inp = gr.Textbox(placeholder="What is your name?") | |
| out = None | |
| inp.change(welcome, inp, out) | |
| demo.launch() | |