Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -142,19 +142,19 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
142 |
visible=False
|
143 |
)
|
144 |
|
145 |
-
action_btn1.click(fn=lambda x: inference(x,
|
146 |
inputs=[
|
147 |
abst,
|
148 |
],
|
149 |
outputs=[a_output, j_output, n_output],
|
150 |
api_name="neurojane")
|
151 |
-
action_btn2.click(fn=lambda x: inference(x,
|
152 |
inputs=[
|
153 |
abst,
|
154 |
],
|
155 |
outputs=[a_output, j_output, n_output],
|
156 |
api_name="neurojane")
|
157 |
-
action_btn3.click(fn=lambda x: inference(x,
|
158 |
inputs=[
|
159 |
abst,
|
160 |
],
|
|
|
142 |
visible=False
|
143 |
)
|
144 |
|
145 |
+
action_btn1.click(fn=lambda x: inference(x, index_names[0]),
|
146 |
inputs=[
|
147 |
abst,
|
148 |
],
|
149 |
outputs=[a_output, j_output, n_output],
|
150 |
api_name="neurojane")
|
151 |
+
action_btn2.click(fn=lambda x: inference(x, index_names[1]),
|
152 |
inputs=[
|
153 |
abst,
|
154 |
],
|
155 |
outputs=[a_output, j_output, n_output],
|
156 |
api_name="neurojane")
|
157 |
+
action_btn3.click(fn=lambda x: inference(x, index_names[2]),
|
158 |
inputs=[
|
159 |
abst,
|
160 |
],
|