Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -644,8 +644,11 @@ STYLE2 = """
|
|
| 644 |
font-family:inherit;transition:border-color .12s;}
|
| 645 |
#f3-root .ib-prompt textarea:focus{border-color:var(--violet);}
|
| 646 |
#f3-root .ib-prompt textarea::placeholder{color:var(--dim2);}
|
| 647 |
-
#f3-root .ib-gen{display:flex;flex-direction:column;justify-content:flex-end;flex:none;}
|
| 648 |
-
#f3-root .ib-gen .genbtn{width:auto;padding:0 26px;height:
|
|
|
|
|
|
|
|
|
|
| 649 |
@media (max-width:760px){#f3-root .inputbar{flex-direction:column;align-items:stretch;}
|
| 650 |
#f3-root .ib-gen .genbtn{width:100%;}}
|
| 651 |
</style>
|
|
@@ -997,7 +1000,9 @@ SCRIPT = r"""
|
|
| 997 |
+ '<textarea rows="2" placeholder="Describe the whole scene in one line — or the edit, if you added a reference image."></textarea>'
|
| 998 |
+ '<div class="ib-up"><span class="btn upBtn"><span class="toggle"></span>Enhance prompt '
|
| 999 |
+ '<span class="hintq">· VLM, text prompts only</span></span></div></div>'
|
| 1000 |
-
+ '<div class="ib-gen"><label class="ib-lab" style="visibility:hidden">GO</label>
|
|
|
|
|
|
|
| 1001 |
+'</div>'
|
| 1002 |
+'<div class="main">'
|
| 1003 |
+ '<div class="leftcol">'
|
|
@@ -1007,7 +1012,6 @@ SCRIPT = r"""
|
|
| 1007 |
+ '<div class="btn toggleBtn on" style="display:none"><span class="toggle"></span>Bounding boxes</div>'
|
| 1008 |
+ '<div class="btn reuseBtn" style="display:none">⟳ Reuse as input</div>'
|
| 1009 |
+ '<div class="btn replayBtn">↻ Replay</div>'
|
| 1010 |
-
+ '<div class="btn clearBtn">✕ Clear</div>'
|
| 1011 |
+ '</div></div>'
|
| 1012 |
+ '<div class="examples"><div class="ex-head">EXAMPLES — click to load, or build your own</div><div class="ex-row"></div></div>'
|
| 1013 |
+ '</div>'
|
|
|
|
| 644 |
font-family:inherit;transition:border-color .12s;}
|
| 645 |
#f3-root .ib-prompt textarea:focus{border-color:var(--violet);}
|
| 646 |
#f3-root .ib-prompt textarea::placeholder{color:var(--dim2);}
|
| 647 |
+
#f3-root .ib-gen{display:flex;flex-direction:column;justify-content:flex-end;gap:8px;flex:none;}
|
| 648 |
+
#f3-root .ib-gen .genbtn{width:auto;padding:0 26px;height:52px;white-space:nowrap;}
|
| 649 |
+
#f3-root .ib-gen .clearBtn{width:auto;padding:9px 26px;background:transparent;border:1px solid var(--line);
|
| 650 |
+
color:var(--dim);border-radius:10px;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:.15s;}
|
| 651 |
+
#f3-root .ib-gen .clearBtn:hover{color:var(--txt);border-color:#3a3a42;}
|
| 652 |
@media (max-width:760px){#f3-root .inputbar{flex-direction:column;align-items:stretch;}
|
| 653 |
#f3-root .ib-gen .genbtn{width:100%;}}
|
| 654 |
</style>
|
|
|
|
| 1000 |
+ '<textarea rows="2" placeholder="Describe the whole scene in one line — or the edit, if you added a reference image."></textarea>'
|
| 1001 |
+ '<div class="ib-up"><span class="btn upBtn"><span class="toggle"></span>Enhance prompt '
|
| 1002 |
+ '<span class="hintq">· VLM, text prompts only</span></span></div></div>'
|
| 1003 |
+
+ '<div class="ib-gen"><label class="ib-lab" style="visibility:hidden">GO</label>'
|
| 1004 |
+
+ '<button class="genbtn">Generate</button>'
|
| 1005 |
+
+ '<button class="clearBtn">✕ Clear canvas</button></div>'
|
| 1006 |
+'</div>'
|
| 1007 |
+'<div class="main">'
|
| 1008 |
+ '<div class="leftcol">'
|
|
|
|
| 1012 |
+ '<div class="btn toggleBtn on" style="display:none"><span class="toggle"></span>Bounding boxes</div>'
|
| 1013 |
+ '<div class="btn reuseBtn" style="display:none">⟳ Reuse as input</div>'
|
| 1014 |
+ '<div class="btn replayBtn">↻ Replay</div>'
|
|
|
|
| 1015 |
+ '</div></div>'
|
| 1016 |
+ '<div class="examples"><div class="ex-head">EXAMPLES — click to load, or build your own</div><div class="ex-row"></div></div>'
|
| 1017 |
+ '</div>'
|