fantaxy commited on
Commit
50f5a42
ยท
verified ยท
1 Parent(s): d47ea1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -19
app.py CHANGED
@@ -111,27 +111,23 @@ footer {visibility: hidden}
111
  }
112
 
113
  /* Examples ํ…์ŠคํŠธ ์ƒ‰์ƒ ๊ฐ•์ œ ์ ์šฉ */
114
- .gallery-item {
115
  color: black !important;
116
  }
117
 
118
- .gallery-item * {
119
  color: black !important;
120
  }
121
 
122
- .fixed-height {
123
  color: black !important;
124
  }
125
 
126
- .fixed-height * {
127
  color: black !important;
128
  }
129
 
130
- .examples-table {
131
- color: black !important;
132
- }
133
-
134
- .examples-table * {
135
  color: black !important;
136
  }
137
 
@@ -226,17 +222,16 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
226
  step=1,
227
  value=28,
228
  )
229
-
230
- examples_section = gr.Examples(
231
- examples=examples,
232
- inputs=[prompt],
233
- outputs=[result, result_full, seed],
234
  fn=infer,
235
- cache_examples=True,
236
- label="Click on any example to try it out",
237
- elem_classes=["examples-table"]
238
- )
239
-
240
  gr.on(
241
  triggers=[run_button.click, prompt.submit],
242
  fn=infer,
 
111
  }
112
 
113
  /* Examples ํ…์ŠคํŠธ ์ƒ‰์ƒ ๊ฐ•์ œ ์ ์šฉ */
114
+ .gr-examples {
115
  color: black !important;
116
  }
117
 
118
+ .gr-examples * {
119
  color: black !important;
120
  }
121
 
122
+ .gr-prose {
123
  color: black !important;
124
  }
125
 
126
+ .gr-prose * {
127
  color: black !important;
128
  }
129
 
130
+ .gr-button-secondary {
 
 
 
 
131
  color: black !important;
132
  }
133
 
 
222
  step=1,
223
  value=28,
224
  )
225
+ # examples_section ๋ถ€๋ถ„์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •
226
+ gr.Examples(
227
+ examples=examples,
228
+ inputs=[prompt],
229
+ outputs=[result, result_full, seed],
230
  fn=infer,
231
+ cache_examples=True,
232
+ label="Click on any example to try it out"
233
+ )
234
+
 
235
  gr.on(
236
  triggers=[run_button.click, prompt.submit],
237
  fn=infer,