chrisjay commited on
Commit
a16cceb
1 Parent(s): 6715604

fix for gr variable state

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🚀
4
  colorFrom: green
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 2.9b24
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)