Spaces:
Running
Running
Update app.py
Browse files
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(
|
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 |
|