DimaQip commited on
Commit
9cc3c35
·
verified ·
1 Parent(s): 091daaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -1,3 +1,12 @@
1
- git add app.py
2
- git commit -m 'Add application file'
3
- git push
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return f"Привет, {name}!"
5
+
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs=gr.Textbox(label="Введите ваше имя"),
9
+ outputs=gr.Textbox(label="Приветствие")
10
+ )
11
+
12
+ demo.launch()