apple muncy commited on
Commit
91b33d0
·
1 Parent(s): 03ca704

Add app.py and req.txt

Browse files

Signed-off-by: apple muncy <[email protected]>

Files changed (2) hide show
  1. app.py +18 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
+ import os
4
+
5
+ def greet(name, intensity):
6
+ return "Hello, " + name + "!" * int(intensity)
7
+
8
+ css = ".gradio-container {background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/c/cc/The_One_Ring_by_Yukatan.svg/640px-The_One_Ring_by_Yukatan.svg.png)}"
9
+ my_theme = gr.Theme.from_hub("gradio/seafoam")
10
+ demo = gr.Interface(
11
+ fn=greet,
12
+ inputs=["text", "slider"],
13
+ outputs=["text"],
14
+ # theme=my_theme,
15
+ css = css
16
+ )
17
+
18
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ huggingface_hub