Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,27 +111,23 @@ footer {visibility: hidden}
|
|
| 111 |
}
|
| 112 |
|
| 113 |
/* Examples ํ
์คํธ ์์ ๊ฐ์ ์ ์ฉ */
|
| 114 |
-
.
|
| 115 |
color: black !important;
|
| 116 |
}
|
| 117 |
|
| 118 |
-
.
|
| 119 |
color: black !important;
|
| 120 |
}
|
| 121 |
|
| 122 |
-
.
|
| 123 |
color: black !important;
|
| 124 |
}
|
| 125 |
|
| 126 |
-
.
|
| 127 |
color: black !important;
|
| 128 |
}
|
| 129 |
|
| 130 |
-
.
|
| 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 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
fn=infer,
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 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,
|