Update app.py
Browse files
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.
|
382 |
-
grpath = gr.
|
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 |
|