Allen Park commited on
Commit
034edb9
·
1 Parent(s): 7144bca

fix(added class to make button fixed height)

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -47,6 +47,10 @@ css = """
47
  body, .gradio-container {
48
  font-family: 'Plus Jakarta Sans', sans-serif !important;
49
  }
 
 
 
 
50
  """
51
 
52
  HEADER = """
@@ -195,7 +199,7 @@ with gr.Blocks(css=css) as demo:
195
  with gr.Row():
196
  document = gr.Textbox(label="Document", scale=9)
197
  u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
198
- file_group = gr.Group(visible=False)
199
  with file_group:
200
  file_name = gr.Markdown("")
201
  c = gr.ClearButton([u, file_name])
 
47
  body, .gradio-container {
48
  font-family: 'Plus Jakarta Sans', sans-serif !important;
49
  }
50
+
51
+ .fixed-height-button {
52
+ height: 200px;
53
+ }
54
  """
55
 
56
  HEADER = """
 
199
  with gr.Row():
200
  document = gr.Textbox(label="Document", scale=9)
201
  u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
202
+ file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
203
  with file_group:
204
  file_name = gr.Markdown("")
205
  c = gr.ClearButton([u, file_name])