cyberandy commited on
Commit
31d9406
·
verified ·
1 Parent(s): 30ede40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
- import gradio as gr
2
  import requests
 
3
 
4
  def get_features(text: str):
5
  url = "https://www.neuronpedia.org/api/search-with-topk"
@@ -118,9 +118,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
118
  )
119
 
120
  with gr.Column(scale=2):
121
- @gr.render(every=0.5)
122
- def render_features():
123
- features = features_state.value
124
  if not features:
125
  return
126
 
 
 
1
  import requests
2
+ import gradio as gr
3
 
4
  def get_features(text: str):
5
  url = "https://www.neuronpedia.org/api/search-with-topk"
 
118
  )
119
 
120
  with gr.Column(scale=2):
121
+ @gr.render(inputs=features_state)
122
+ def render_features(features):
 
123
  if not features:
124
  return
125