amandaodoo commited on
Commit
4e62e7f
·
0 Parent(s):

primer comit

Browse files
Files changed (4) hide show
  1. .gitignore +2 -0
  2. README.md +9 -0
  3. app.py +20 -0
  4. requirements.txt +1 -0
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *venv_gradio*/
2
+ *venv*/
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "app gradio minima"
3
+ emoji: "🤖"
4
+ sdk: gradio
5
+ sdk_version: 6.20
6
+ app_file: app.py
7
+ colorFrom: blue
8
+ colorTo: red
9
+ ---
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #====================
2
+
3
+ import gradio as gr
4
+
5
+ #====================
6
+ def greet(name, intensity):
7
+ return "Hello, " + name + "!" * int(intensity)
8
+
9
+ #====================
10
+
11
+ demo = gr.Interface(
12
+ fn=greet,
13
+ inputs=["text", "slider"],
14
+ outputs=["text"],
15
+ api_name="predict"
16
+ )
17
+
18
+ #====================
19
+
20
+ demo.launch(share=True)
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ spaces