Spaces:
Running
on
Zero
Running
on
Zero
sharing public
Browse files
app.py
CHANGED
@@ -126,9 +126,16 @@ css = """
|
|
126 |
}
|
127 |
"""
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
with gr.Blocks(css=css) as demo:
|
130 |
with gr.Column(elem_id="col-container"):
|
131 |
-
gr.Markdown(" # SliderSpace
|
132 |
|
133 |
with gr.Row():
|
134 |
prompt = gr.Text(
|
@@ -162,6 +169,7 @@ with gr.Blocks(css=css) as demo:
|
|
162 |
"plant",
|
163 |
"robot",
|
164 |
"sculpture",
|
|
|
165 |
"spaceship",
|
166 |
"statue",
|
167 |
"studio",
|
@@ -263,4 +271,4 @@ with gr.Blocks(css=css) as demo:
|
|
263 |
)
|
264 |
|
265 |
if __name__ == "__main__":
|
266 |
-
demo.launch()
|
|
|
126 |
}
|
127 |
"""
|
128 |
|
129 |
+
ORIGINAL_SPACE_ID = 'baulab/SliderSpace'
|
130 |
+
SPACE_ID = os.getenv('SPACE_ID')
|
131 |
+
|
132 |
+
SHARED_UI_WARNING = f'''## You can duplicate and use it with a gpu with at least 24GB, or clone this repository to run on your own machine.
|
133 |
+
<center><a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="margin-top:0;margin-bottom:0" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></center>
|
134 |
+
'''
|
135 |
+
|
136 |
with gr.Blocks(css=css) as demo:
|
137 |
with gr.Column(elem_id="col-container"):
|
138 |
+
gr.Markdown(" # SliderSpace: Decomposing Visual Capabilities of Diffusion Models")
|
139 |
|
140 |
with gr.Row():
|
141 |
prompt = gr.Text(
|
|
|
169 |
"plant",
|
170 |
"robot",
|
171 |
"sculpture",
|
172 |
+
"sdxl_spaceship",
|
173 |
"spaceship",
|
174 |
"statue",
|
175 |
"studio",
|
|
|
271 |
)
|
272 |
|
273 |
if __name__ == "__main__":
|
274 |
+
demo.launch(share=True)
|