Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Style adjustment
Browse files
app.py
CHANGED
@@ -44,9 +44,8 @@ custom_css = """
|
|
44 |
|
45 |
.sandbox-container {
|
46 |
position: relative;
|
47 |
-
width:
|
48 |
-
height:
|
49 |
-
flex-shrink: 0;
|
50 |
overflow: hidden;
|
51 |
}
|
52 |
|
@@ -54,20 +53,19 @@ custom_css = """
|
|
54 |
position: absolute;
|
55 |
top: 0;
|
56 |
left: 0;
|
57 |
-
width:
|
58 |
-
height:
|
59 |
-
object-fit: cover;
|
60 |
}
|
61 |
|
62 |
.sandbox-iframe {
|
63 |
position: absolute;
|
64 |
-
top:
|
65 |
-
left:
|
66 |
-
width:
|
67 |
-
height:
|
68 |
border: 4px solid #444444;
|
69 |
transform-origin: 0 0;
|
70 |
-
transform: scale(0.
|
71 |
}
|
72 |
|
73 |
/* Status indicator light */
|
@@ -143,7 +141,7 @@ custom_css = """
|
|
143 |
height: 60px;
|
144 |
object-fit: contain;
|
145 |
}
|
146 |
-
"""
|
147 |
|
148 |
header_html="""
|
149 |
<h2 style="text-align: center">GUI Agent assistant</h2>
|
@@ -163,7 +161,7 @@ header_html="""
|
|
163 |
sandbox_html_template = """
|
164 |
<div class="sandbox-outer-wrapper">
|
165 |
<div class="sandbox-container">
|
166 |
-
<img src="https://huggingface.co/datasets/
|
167 |
<div class="status-text">{status_text}</div>
|
168 |
<div class="status-indicator {status_class}"></div>
|
169 |
<iframe id="sandbox-iframe"
|
@@ -175,11 +173,11 @@ sandbox_html_template = """
|
|
175 |
<img id="bsod-image"
|
176 |
src="https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/blue_screen_of_death.gif"
|
177 |
class="bsod-image"
|
178 |
-
style="display: none; position: absolute; top:
|
179 |
/>
|
180 |
</div>
|
181 |
</div>
|
182 |
-
"""
|
183 |
|
184 |
custom_js = """
|
185 |
function() {
|
|
|
44 |
|
45 |
.sandbox-container {
|
46 |
position: relative;
|
47 |
+
width: 940px;
|
48 |
+
height: 770px;
|
|
|
49 |
overflow: hidden;
|
50 |
}
|
51 |
|
|
|
53 |
position: absolute;
|
54 |
top: 0;
|
55 |
left: 0;
|
56 |
+
width: 940px;
|
57 |
+
height: 770px;
|
|
|
58 |
}
|
59 |
|
60 |
.sandbox-iframe {
|
61 |
position: absolute;
|
62 |
+
top: 13%;
|
63 |
+
left: 5%;
|
64 |
+
width: <<WIDTH>>px;
|
65 |
+
height: <<HEIGHT>>px;
|
66 |
border: 4px solid #444444;
|
67 |
transform-origin: 0 0;
|
68 |
+
transform: scale(0.65);
|
69 |
}
|
70 |
|
71 |
/* Status indicator light */
|
|
|
141 |
height: 60px;
|
142 |
object-fit: contain;
|
143 |
}
|
144 |
+
""".replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
|
145 |
|
146 |
header_html="""
|
147 |
<h2 style="text-align: center">GUI Agent assistant</h2>
|
|
|
161 |
sandbox_html_template = """
|
162 |
<div class="sandbox-outer-wrapper">
|
163 |
<div class="sandbox-container">
|
164 |
+
<img src="https://huggingface.co/datasets/m-ric/images/resolve/main/HUD_1024x768.png" class="sandbox-background" />
|
165 |
<div class="status-text">{status_text}</div>
|
166 |
<div class="status-indicator {status_class}"></div>
|
167 |
<iframe id="sandbox-iframe"
|
|
|
173 |
<img id="bsod-image"
|
174 |
src="https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/blue_screen_of_death.gif"
|
175 |
class="bsod-image"
|
176 |
+
style="display: none; position: absolute; top: 13%; left: 5%; width: <<WIDTH>>px; height: <<HEIGHT>>px; border: 4px solid #444444;"
|
177 |
/>
|
178 |
</div>
|
179 |
</div>
|
180 |
+
""".replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
|
181 |
|
182 |
custom_js = """
|
183 |
function() {
|