Spaces:
Runtime error
Runtime error
fix for gr variable state
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🚀
|
|
4 |
colorFrom: green
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: green
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.0.20
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -233,7 +233,7 @@ with block:
|
|
233 |
with gr.TabItem(rl_env) as rl_tab:
|
234 |
data_html,data_dataframe,is_empty = RL_DETAILS[rl_env]['data']
|
235 |
markdown = get_info_display(data_dataframe,rl_env,RL_DETAILS[rl_env]['title'],is_empty)
|
236 |
-
env_state =gr.Variable(value=rl_env)
|
237 |
output_markdown = gr.HTML(markdown)
|
238 |
|
239 |
output_html = gr.HTML(data_html)
|
|
|
233 |
with gr.TabItem(rl_env) as rl_tab:
|
234 |
data_html,data_dataframe,is_empty = RL_DETAILS[rl_env]['data']
|
235 |
markdown = get_info_display(data_dataframe,rl_env,RL_DETAILS[rl_env]['title'],is_empty)
|
236 |
+
env_state =gr.Variable(value=f'\"{rl_env}\"')
|
237 |
output_markdown = gr.HTML(markdown)
|
238 |
|
239 |
output_html = gr.HTML(data_html)
|