ysharma HF staff commited on
Commit
eb94f19
1 Parent(s): 450e242

enable scrolling

Browse files

This 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.

Files changed (1) hide show
  1. app.py +4 -2
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