lhj
commited on
Commit
·
f17b6d6
1
Parent(s):
ef1a690
init
Browse files
app.py
CHANGED
|
@@ -1,7 +1,19 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
return "
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def welcome(name):
|
| 4 |
+
return f"Welcome to GmasterAI, {name}!"
|
| 5 |
|
| 6 |
+
with gr.Blocks() as demo:
|
| 7 |
+
gr.Markdown(
|
| 8 |
+
"""
|
| 9 |
+
# Welcome to experience GmasterAI !
|
| 10 |
+
### an exquisite AI drawing application.
|
| 11 |
+
New users will receive 10 free trial opportunities upon registration.
|
| 12 |
+
### Website: <a href="https://www.gmaster.ai">https://www.gmaster.ai</a>
|
| 13 |
+
<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>
|
| 14 |
+
""")
|
| 15 |
+
inp = gr.Textbox(placeholder="What is your name?")
|
| 16 |
+
out = None
|
| 17 |
+
inp.change(welcome, inp, out)
|
| 18 |
+
|
| 19 |
+
demo.launch()
|