Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ h1 { color:#F714C5; text-align:center; }
|
|
| 45 |
</html>"""
|
| 46 |
|
| 47 |
with gr.Blocks(css=f"""
|
| 48 |
-
/* Dark night sky background with
|
| 49 |
body {{
|
| 50 |
margin:0;
|
| 51 |
padding:0;
|
|
@@ -55,17 +55,17 @@ body {{
|
|
| 55 |
color:#e0e0e0;
|
| 56 |
position: relative;
|
| 57 |
}}
|
| 58 |
-
|
| 59 |
-
/* Floating particles */
|
| 60 |
body::before {{
|
| 61 |
content:'';
|
| 62 |
position:absolute;
|
| 63 |
top:0; left:0;
|
| 64 |
width:100%; height:100%;
|
| 65 |
-
background-image: radial-gradient(white
|
| 66 |
-
background-size:
|
|
|
|
| 67 |
pointer-events:none;
|
| 68 |
-
animation: moveStars
|
| 69 |
z-index:0;
|
| 70 |
}}
|
| 71 |
@keyframes moveStars {{
|
|
@@ -74,16 +74,20 @@ body::before {{
|
|
| 74 |
}}
|
| 75 |
|
| 76 |
.gradio-container {{
|
| 77 |
-
max-width:
|
| 78 |
margin:auto;
|
| 79 |
-
padding:20px;
|
| 80 |
position:relative;
|
| 81 |
z-index:1; /* above particle layer */
|
| 82 |
}}
|
| 83 |
|
| 84 |
.gr-row {{ display:flex; gap:20px; margin-top:20px; }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
.output-panel {{
|
| 86 |
-
flex:1;
|
| 87 |
background:#1e1e1e;
|
| 88 |
border-radius:8px;
|
| 89 |
box-shadow:0 4px 8px rgba(0,0,0,0.5);
|
|
@@ -94,15 +98,16 @@ body::before {{
|
|
| 94 |
white-space: pre-wrap;
|
| 95 |
overflow:auto;
|
| 96 |
}}
|
|
|
|
| 97 |
#editor-container .CodeMirror {{
|
| 98 |
-
flex:1;
|
| 99 |
height:600px;
|
| 100 |
border-radius:8px;
|
| 101 |
font-family: monospace;
|
| 102 |
font-size:14px;
|
| 103 |
-
white-space: pre-wrap;
|
| 104 |
overflow-wrap: break-word;
|
| 105 |
}}
|
|
|
|
| 106 |
.gr-radio {{ color:#e0e0e0; margin-bottom:16px; }}
|
| 107 |
button, .gr-button {{ background-color:#F714C5 !important; color:#fff !important; border-radius:6px !important; padding:10px 20px !important; }}
|
| 108 |
footer {{ display:none !important; }}
|
|
@@ -155,3 +160,4 @@ header img {{ vertical-align:middle; height:20px; margin-right:8px; }}
|
|
| 155 |
render_button.click(run_code, inputs=[code_input, lang_selector], outputs=output_frame)
|
| 156 |
|
| 157 |
demo.launch()
|
|
|
|
|
|
| 45 |
</html>"""
|
| 46 |
|
| 47 |
with gr.Blocks(css=f"""
|
| 48 |
+
/* Dark night sky background with subtle particles */
|
| 49 |
body {{
|
| 50 |
margin:0;
|
| 51 |
padding:0;
|
|
|
|
| 55 |
color:#e0e0e0;
|
| 56 |
position: relative;
|
| 57 |
}}
|
| 58 |
+
/* subtle particle animation */
|
|
|
|
| 59 |
body::before {{
|
| 60 |
content:'';
|
| 61 |
position:absolute;
|
| 62 |
top:0; left:0;
|
| 63 |
width:100%; height:100%;
|
| 64 |
+
background-image: radial-gradient(white 0.5px, transparent 0.5px);
|
| 65 |
+
background-size: 20px 20px;
|
| 66 |
+
opacity: 0.15;
|
| 67 |
pointer-events:none;
|
| 68 |
+
animation: moveStars 180s linear infinite;
|
| 69 |
z-index:0;
|
| 70 |
}}
|
| 71 |
@keyframes moveStars {{
|
|
|
|
| 74 |
}}
|
| 75 |
|
| 76 |
.gradio-container {{
|
| 77 |
+
max-width:1900px;
|
| 78 |
margin:auto;
|
| 79 |
+
padding:20px;
|
| 80 |
position:relative;
|
| 81 |
z-index:1; /* above particle layer */
|
| 82 |
}}
|
| 83 |
|
| 84 |
.gr-row {{ display:flex; gap:20px; margin-top:20px; }}
|
| 85 |
+
|
| 86 |
+
/* Editor 80% width, output 20% */
|
| 87 |
+
#editor-container {{ flex:0.8; }}
|
| 88 |
+
#output-panel {{ flex:0.2; }}
|
| 89 |
+
|
| 90 |
.output-panel {{
|
|
|
|
| 91 |
background:#1e1e1e;
|
| 92 |
border-radius:8px;
|
| 93 |
box-shadow:0 4px 8px rgba(0,0,0,0.5);
|
|
|
|
| 98 |
white-space: pre-wrap;
|
| 99 |
overflow:auto;
|
| 100 |
}}
|
| 101 |
+
|
| 102 |
#editor-container .CodeMirror {{
|
|
|
|
| 103 |
height:600px;
|
| 104 |
border-radius:8px;
|
| 105 |
font-family: monospace;
|
| 106 |
font-size:14px;
|
| 107 |
+
white-space: pre-wrap;
|
| 108 |
overflow-wrap: break-word;
|
| 109 |
}}
|
| 110 |
+
|
| 111 |
.gr-radio {{ color:#e0e0e0; margin-bottom:16px; }}
|
| 112 |
button, .gr-button {{ background-color:#F714C5 !important; color:#fff !important; border-radius:6px !important; padding:10px 20px !important; }}
|
| 113 |
footer {{ display:none !important; }}
|
|
|
|
| 160 |
render_button.click(run_code, inputs=[code_input, lang_selector], outputs=output_frame)
|
| 161 |
|
| 162 |
demo.launch()
|
| 163 |
+
|