applemuncy commited on
Commit
73ab785
·
verified ·
1 Parent(s): 0fc8e32

Change to static link buttons

Browse files
Files changed (1) hide show
  1. app.py +4 -15
app.py CHANGED
@@ -1,18 +1,7 @@
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()
 
 
1
  import gradio as gr
 
 
 
 
2
 
3
+ with gr.Blocks(theme=gr.themes.Glass()) as demo:
4
+ open_google = gr.Button(value="Client", link="https://huggingface.co/spaces/WD101/OneClientToRuleThemAll")
5
+ open_bing = gr.Button(value="Server", link="https://huggingface.co/spaces/WD101/OneServerToRuleThemAll")
 
 
 
 
 
 
6
 
7
+ demo.launch()