Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -91,7 +91,7 @@ with gradio.Blocks() as demo:
|
|
91 |
)
|
92 |
with gradio.Accordion("Settings", open=False):
|
93 |
k = gradio.Number(10.0, label="Number of results", precision=0)
|
94 |
-
n = gradio.Radio([True, False], label="Normalized")
|
95 |
results = gradio.Markdown()
|
96 |
query.change(fn=search, inputs=[query, k, n], outputs=results)
|
97 |
k.change(fn=search, inputs=[query, k, n], outputs=results)
|
|
|
91 |
)
|
92 |
with gradio.Accordion("Settings", open=False):
|
93 |
k = gradio.Number(10.0, label="Number of results", precision=0)
|
94 |
+
n = gradio.Radio([True, False], value=True, label="Normalized")
|
95 |
results = gradio.Markdown()
|
96 |
query.change(fn=search, inputs=[query, k, n], outputs=results)
|
97 |
k.change(fn=search, inputs=[query, k, n], outputs=results)
|