Update app.py

#56
by abidlabs HF staff - opened
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -378,8 +378,8 @@ with block:
378
  user_id = gr.Textbox(label= "Your user id")
379
  search_btn = gr.Button("Search my models πŸ”Ž")
380
  reset_btn = gr.Button("Clear my search")
381
- env = gr.Variable(rl_env["rl_env"])
382
- grpath = gr.Variable(path_)
383
  with gr.Row():
384
  gr_dataframe = gr.components.Dataframe(value=get_data(rl_env["rl_env"], path_), headers=["Ranking πŸ†", "User πŸ€—", "Model id πŸ€–", "Results", "Mean Reward", "Std Reward"], datatype=["number", "markdown", "markdown", "number", "number", "number"], row_count=(100, 'fixed'))
385
 
 
378
  user_id = gr.Textbox(label= "Your user id")
379
  search_btn = gr.Button("Search my models πŸ”Ž")
380
  reset_btn = gr.Button("Clear my search")
381
+ env = gr.State(rl_env["rl_env"])
382
+ grpath = gr.State(path_)
383
  with gr.Row():
384
  gr_dataframe = gr.components.Dataframe(value=get_data(rl_env["rl_env"], path_), headers=["Ranking πŸ†", "User πŸ€—", "Model id πŸ€–", "Results", "Mean Reward", "Std Reward"], datatype=["number", "markdown", "markdown", "number", "number", "number"], row_count=(100, 'fixed'))
385