NeoPy commited on
Commit
395c54d
·
verified ·
1 Parent(s): e168087

Update theme_dropdown.py

Browse files
Files changed (1) hide show
  1. theme_dropdown.py +4 -3
theme_dropdown.py CHANGED
@@ -7,7 +7,7 @@ from gradio.themes.utils import ThemeAsset
7
  def create_theme_dropdown():
8
  import gradio as gr
9
 
10
- asset_path = pathlib.Path(__file__).parent / "themes"
11
  themes = []
12
  for theme_asset in os.listdir(str(asset_path)):
13
  themes.append(
@@ -37,7 +37,8 @@ def create_theme_dropdown():
37
  value=latest_to_oldest[0],
38
  render=False,
39
  label="Select Version",
40
- ).style(container=False)
 
41
 
42
  return (
43
  component,
@@ -54,4 +55,4 @@ def create_theme_dropdown():
54
  theme_elem.innerHTML = theme_css;
55
  }}
56
  """,
57
- )
 
7
  def create_theme_dropdown():
8
  import gradio as gr
9
 
10
+ asset_path = pathlib.Path() / "themes"
11
  themes = []
12
  for theme_asset in os.listdir(str(asset_path)):
13
  themes.append(
 
37
  value=latest_to_oldest[0],
38
  render=False,
39
  label="Select Version",
40
+ container=False,
41
+ )
42
 
43
  return (
44
  component,
 
55
  theme_elem.innerHTML = theme_css;
56
  }}
57
  """,
58
+ )