Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
275eeaa
1
Parent(s):
8221d43
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,26 @@ examples = [
|
|
152 |
"A delicious feijoada ramen dish"
|
153 |
]
|
154 |
css = '''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
.gradio-container{max-width: 760px !important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
'''
|
157 |
with gr.Blocks(css=css) as demo:
|
158 |
gr.Markdown(DESCRIPTION)
|
@@ -276,7 +295,7 @@ with gr.Blocks(css=css) as demo:
|
|
276 |
api_name="run",
|
277 |
)
|
278 |
|
279 |
-
with gr.Blocks(css=
|
280 |
with gr.Tab("App"):
|
281 |
demo.render()
|
282 |
with gr.Tab("Past generations"):
|
|
|
152 |
"A delicious feijoada ramen dish"
|
153 |
]
|
154 |
css = '''
|
155 |
+
h1 {
|
156 |
+
text-align: center;
|
157 |
+
justify-content: center;
|
158 |
+
}
|
159 |
+
[role="tabpanel"]{border: 0}
|
160 |
+
#duplicate-button {
|
161 |
+
margin: auto;
|
162 |
+
color: #fff;
|
163 |
+
background: #1565c0;
|
164 |
+
border-radius: 100vh;
|
165 |
+
}
|
166 |
.gradio-container{max-width: 760px !important}
|
167 |
+
#share-btn-container{padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;margin-top: 0.35em;}
|
168 |
+
div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
|
169 |
+
#share-btn-container:hover {background-color: #060606}
|
170 |
+
#share-btn {all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.5rem !important; padding-bottom: 0.5rem !important;right:0;font-size: 15px;}
|
171 |
+
#share-btn * {all: unset}
|
172 |
+
#share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
|
173 |
+
#share-btn-container .wrap {display: none !important}
|
174 |
+
#share-btn-container.hidden {display: none!important}
|
175 |
'''
|
176 |
with gr.Blocks(css=css) as demo:
|
177 |
gr.Markdown(DESCRIPTION)
|
|
|
295 |
api_name="run",
|
296 |
)
|
297 |
|
298 |
+
with gr.Blocks(css=css) as demo_with_history:
|
299 |
with gr.Tab("App"):
|
300 |
demo.render()
|
301 |
with gr.Tab("Past generations"):
|