Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2536b39
1
Parent(s):
f084adb
Make buttons invisible
Browse files- app.py +2 -2
- static/style.css +10 -0
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
|
| 4 |
-
subprocess.run('pip install flash-attn==2.8.0 --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 5 |
|
| 6 |
import threading
|
| 7 |
|
|
@@ -188,7 +188,7 @@ with gr.Blocks(theme=THEME, css=CSS, fill_height=True) as demo:
|
|
| 188 |
)
|
| 189 |
|
| 190 |
# Hidden buttons for functionality
|
| 191 |
-
with gr.Row(visible=True):
|
| 192 |
send_btn = gr.Button("Send", variant="primary", elem_id="send-btn")
|
| 193 |
stop_btn = gr.Button("Stop", variant="secondary", elem_id="stop-btn")
|
| 194 |
clear_btn = gr.Button("Clear", variant="secondary", elem_id="clear-btn")
|
|
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
|
| 4 |
+
# subprocess.run('pip install flash-attn==2.8.0 --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 5 |
|
| 6 |
import threading
|
| 7 |
|
|
|
|
| 188 |
)
|
| 189 |
|
| 190 |
# Hidden buttons for functionality
|
| 191 |
+
with gr.Row(visible=True, elem_id="hidden-buttons"):
|
| 192 |
send_btn = gr.Button("Send", variant="primary", elem_id="send-btn")
|
| 193 |
stop_btn = gr.Button("Stop", variant="secondary", elem_id="stop-btn")
|
| 194 |
clear_btn = gr.Button("Clear", variant="secondary", elem_id="clear-btn")
|
static/style.css
CHANGED
|
@@ -152,3 +152,13 @@
|
|
| 152 |
}
|
| 153 |
|
| 154 |
.footer-tip { color: #64748b; font-size: 12.5px; text-align:center; margin-top: 6px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
}
|
| 153 |
|
| 154 |
.footer-tip { color: #64748b; font-size: 12.5px; text-align:center; margin-top: 6px; }
|
| 155 |
+
|
| 156 |
+
/* Hidden buttons row - make invisible without using visibility */
|
| 157 |
+
#hidden-buttons {
|
| 158 |
+
opacity: 0 !important;
|
| 159 |
+
height: 0 !important;
|
| 160 |
+
overflow: hidden !important;
|
| 161 |
+
margin: 0 !important;
|
| 162 |
+
padding: 0 !important;
|
| 163 |
+
pointer-events: none !important;
|
| 164 |
+
}
|