Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
#!/usr/bin/env python
|
2 |
|
3 |
-
import os
|
4 |
import random
|
5 |
|
6 |
import gradio as gr
|
@@ -109,11 +108,6 @@ def process_example(
|
|
109 |
|
110 |
with gr.Blocks(css_paths="style.css") as demo:
|
111 |
gr.Markdown(DESCRIPTION)
|
112 |
-
gr.DuplicateButton(
|
113 |
-
value="Duplicate Space for private use",
|
114 |
-
elem_id="duplicate-button",
|
115 |
-
visible=os.getenv("SHOW_DUPLICATE_BUTTON") == "1",
|
116 |
-
)
|
117 |
|
118 |
with gr.Row():
|
119 |
with gr.Column():
|
@@ -245,7 +239,6 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
245 |
result,
|
246 |
],
|
247 |
fn=process_example,
|
248 |
-
cache_examples=os.getenv("CACHE_EXAMPLES") == "1",
|
249 |
examples_per_page=20,
|
250 |
)
|
251 |
|
|
|
1 |
#!/usr/bin/env python
|
2 |
|
|
|
3 |
import random
|
4 |
|
5 |
import gradio as gr
|
|
|
108 |
|
109 |
with gr.Blocks(css_paths="style.css") as demo:
|
110 |
gr.Markdown(DESCRIPTION)
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
with gr.Row():
|
113 |
with gr.Column():
|
|
|
239 |
result,
|
240 |
],
|
241 |
fn=process_example,
|
|
|
242 |
examples_per_page=20,
|
243 |
)
|
244 |
|