Spaces:
Sleeping
Sleeping
Change to static link buttons
Browse files
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 |
-
|
| 9 |
-
|
| 10 |
-
|
| 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()
|