Spaces:
Nymbo
/
Runtime error

Rooni commited on
Commit
cfebac4
1 Parent(s): 847681c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -7,13 +7,13 @@ from gradio.themes.utils.theme_dropdown import create_theme_dropdown
7
 
8
  dropdown, js = create_theme_dropdown()
9
 
10
- with gr.Blocks(theme='YTheme/PastelDark') as demo:
11
  with gr.Row().style(equal_height=True):
12
  with gr.Column(scale=10):
13
  gr.Markdown(
14
  """
15
- # Theme preview: `PastelDark`
16
- To use this theme, set `theme='YTheme/PastelDark'` in `gr.Blocks()` or `gr.Interface()`.
17
  You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
18
  of this theme.
19
  """
@@ -65,7 +65,7 @@ with gr.Blocks(theme='YTheme/PastelDark') as demo:
65
  check = gr.Checkbox(label="Go")
66
  with gr.Column(variant="panel", scale=2):
67
  img = gr.Image(
68
- "https://huggingface.co/spaces/YTheme/PastelDark/resolve/main/header-image.jpg", label="Image"
69
  ).style(height=320)
70
  with gr.Row():
71
  go_btn = gr.Button("Go", label="Primary Button", variant="primary")
@@ -75,7 +75,7 @@ with gr.Blocks(theme='YTheme/PastelDark') as demo:
75
 
76
  def go(*args):
77
  time.sleep(3)
78
- return "https://huggingface.co/spaces/YTheme/PastelDark/resolve/main/header-image.jpg"
79
 
80
  go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
81
 
 
7
 
8
  dropdown, js = create_theme_dropdown()
9
 
10
+ with gr.Blocks(theme='YTheme/GMaterial') as demo:
11
  with gr.Row().style(equal_height=True):
12
  with gr.Column(scale=10):
13
  gr.Markdown(
14
  """
15
+ # Theme preview: `GMaterial`
16
+ To use this theme, set `theme='YTheme/GMaterial'` in `gr.Blocks()` or `gr.Interface()`.
17
  You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
18
  of this theme.
19
  """
 
65
  check = gr.Checkbox(label="Go")
66
  with gr.Column(variant="panel", scale=2):
67
  img = gr.Image(
68
+ "https://huggingface.co/spaces/YTheme/GMaterial/resolve/main/header-image.jpg", label="Image"
69
  ).style(height=320)
70
  with gr.Row():
71
  go_btn = gr.Button("Go", label="Primary Button", variant="primary")
 
75
 
76
  def go(*args):
77
  time.sleep(3)
78
+ return "https://huggingface.co/spaces/YTheme/GMaterial/resolve/main/header-image.jpg"
79
 
80
  go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
81