Spaces:
Runtime error
Runtime error
Commit
•
f1d9efe
1
Parent(s):
15bf13a
Cosmetic changes
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ css = '''
|
|
19 |
.instruction{position: absolute; top: 0;right: 0;margin-top: 0px !important}
|
20 |
.arrow{position: absolute;top: 0;right: -110px;margin-top: -8px !important}
|
21 |
#component-4, #component-3, #component-10{min-height: 0}
|
|
|
22 |
'''
|
23 |
maximum_concepts = 3
|
24 |
|
@@ -251,8 +252,7 @@ with gr.Blocks(css=css) as demo:
|
|
251 |
gr.HTML(f'''
|
252 |
<div class="gr-prose" style="max-width: 80%">
|
253 |
<h2>Attention - This Space doesn't work in this shared UI</h2>
|
254 |
-
<p>For it to work, you have to duplicate the Space and run it on your own profile using a (paid) private T4 GPU for training. As each T4 costs US$0.60/h, it should cost < US$1 to train a model with less than 100 images using default settings
|
255 |
-
<a style="display:inline-block" href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}?duplicate=true"><img 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>
|
256 |
<img class="instruction" src="file/duplicate.png">
|
257 |
<img class="arrow" src="file/arrow.png" />
|
258 |
</div>
|
|
|
19 |
.instruction{position: absolute; top: 0;right: 0;margin-top: 0px !important}
|
20 |
.arrow{position: absolute;top: 0;right: -110px;margin-top: -8px !important}
|
21 |
#component-4, #component-3, #component-10{min-height: 0}
|
22 |
+
.duplicate-button img{margin: 0}
|
23 |
'''
|
24 |
maximum_concepts = 3
|
25 |
|
|
|
252 |
gr.HTML(f'''
|
253 |
<div class="gr-prose" style="max-width: 80%">
|
254 |
<h2>Attention - This Space doesn't work in this shared UI</h2>
|
255 |
+
<p>For it to work, you have to duplicate the Space and run it on your own profile using a (paid) private T4 GPU for training. As each T4 costs US$0.60/h, it should cost < US$1 to train a model with less than 100 images using default settings! <a class="duplicate-button" style="display:inline-block" href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}?duplicate=true"><img 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></p>
|
|
|
256 |
<img class="instruction" src="file/duplicate.png">
|
257 |
<img class="arrow" src="file/arrow.png" />
|
258 |
</div>
|