Spaces:
Running
on
A10G
Running
on
A10G
enable scrolling
Browse filesThis is strange CSS behavior. The application displays properly on my local machine, but on Spaces, it is truncated unless you zoom out. It turns out, all we needed to do is enable scrolling.
app.py
CHANGED
@@ -261,9 +261,11 @@ def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_rep
|
|
261 |
shutil.rmtree(model_name, ignore_errors=True)
|
262 |
print("Folder cleaned up successfully!")
|
263 |
|
264 |
-
|
|
|
|
|
265 |
# Create Gradio interface
|
266 |
-
with gr.Blocks() as demo:
|
267 |
gr.Markdown("You must be logged in to use GGUF-my-repo.")
|
268 |
gr.LoginButton(min_width=250)
|
269 |
|
|
|
261 |
shutil.rmtree(model_name, ignore_errors=True)
|
262 |
print("Folder cleaned up successfully!")
|
263 |
|
264 |
+
css="""/* Custom CSS to allow scrolling */
|
265 |
+
.gradio-container {overflow-y: auto;}
|
266 |
+
"""
|
267 |
# Create Gradio interface
|
268 |
+
with gr.Blocks(css=css) as demo:
|
269 |
gr.Markdown("You must be logged in to use GGUF-my-repo.")
|
270 |
gr.LoginButton(min_width=250)
|
271 |
|