componavt commited on
Commit
4967e65
·
1 Parent(s): cf97361

start game

Browse files
Files changed (2) hide show
  1. app.py +12 -0
  2. requirements.txt +4 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name, intensity):
4
+ return "Hello, " + name + "!" * int(intensity)
5
+
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs=["text", gr.Slider(value=1, minimum=1, maximum=10, step=1)],
9
+ outputs="text",
10
+ )
11
+
12
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ gradio>=4.0.0
2
+ numpy>=1.24.0
3
+ scipy>=1.10.0
4
+ matplotlib>=3.7.0