ysharma HF Staff commited on
Commit
788d76f
·
1 Parent(s): 939777d

update height for plot

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -103,9 +103,9 @@ def bokehplots():
103
  return p
104
 
105
 
106
- with gr.Blocks() as demo:
107
  with gr.Row():
108
- plot = gr.Plot()
109
  out_dataframe = gr.Dataframe(wrap=True, max_rows=10, overflow_row_behaviour= "paginate", datatype = ["str", "number", "number"], interactive=False)
110
  demo.load(bokehplots, outputs=[plot])
111
  demo.load(fn=display_df, outputs=[out_dataframe])
 
103
  return p
104
 
105
 
106
+ with gr.Blocks(css = '#myplot {height: 700;}') as demo:
107
  with gr.Row():
108
+ plot = gr.Plot(elem_id='myplot')
109
  out_dataframe = gr.Dataframe(wrap=True, max_rows=10, overflow_row_behaviour= "paginate", datatype = ["str", "number", "number"], interactive=False)
110
  demo.load(bokehplots, outputs=[plot])
111
  demo.load(fn=display_df, outputs=[out_dataframe])