TorTorosov commited on
Commit
9cd4ac5
·
verified ·
1 Parent(s): eaa311c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return f"Привет, {name}! Это динамический результат."
5
+
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs="text",
9
+ outputs="text",
10
+ title="Приветствие от Gradio",
11
+ description="Введи своё имя, чтобы получить приветствие!"
12
+ )
13
+
14
+ if __name__ == "__main__":
15
+ demo.launch()