pikto commited on
Commit
a609303
·
1 Parent(s): 8674295

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -28
app.py CHANGED
@@ -98,34 +98,6 @@ with gr.Blocks(theme='pikto/theme@>=0.0.1,<0.0.2') as pan:
98
  image_output = gr.Image()
99
  image_button = gr.Button("Flip")
100
 
101
- ##theme
102
- with gr.Blocks(theme='nota-ai/theme') as demo:
103
- with gr.Row().style(equal_height=True):
104
- with gr.Column(scale=10):
105
- gr.Markdown(
106
- """
107
- # Theme preview: `theme`
108
- To use this theme, set `theme='nota-ai/theme'` in `gr.Blocks()` or `gr.Interface()`.
109
- You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
110
- of this theme.
111
- """
112
- )
113
- with gr.Column(scale=3):
114
- with gr.Box():
115
- dropdown.render()
116
- toggle_dark = gr.Button(value="Toggle Dark").style(full_width=True)
117
-
118
- dropdown.change(None, dropdown, None, _js=js)
119
- toggle_dark.click(
120
- None,
121
- _js="""
122
- () => {
123
- document.body.classList.toggle('dark');
124
- document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'
125
- }
126
- """,
127
- )
128
-
129
 
130
 
131
  # text_button.click(flip_text, inputs=text_input, outputs=text_output)
 
98
  image_output = gr.Image()
99
  image_button = gr.Button("Flip")
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
 
103
  # text_button.click(flip_text, inputs=text_input, outputs=text_output)