Spaces:
Runtime error
Runtime error
Tollef Jørgensen
commited on
Commit
•
ac60bee
1
Parent(s):
4d794c6
slider int step
Browse files
app.py
CHANGED
@@ -66,6 +66,7 @@ dropdown_opts = [doc.url for idx, doc in df.iterrows()]
|
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Label("Lovdata rettsavgjørelser - semantisk søk")
|
|
|
69 |
|
70 |
case_dropdown = gr.Dropdown(label="Velg en rettsavgjørelse", choices=dropdown_opts, default=dropdown_opts[0])
|
71 |
# when case_dropdown changes, update the summary dropdown:
|
@@ -76,7 +77,7 @@ with gr.Blocks() as demo:
|
|
76 |
lines=1,
|
77 |
placeholder="Kollisjon mellom to kjøretøy.",
|
78 |
)
|
79 |
-
k_slider = gr.Slider(minimum=1, maximum=10, label="Number of matches", value=5)
|
80 |
|
81 |
search_btn = gr.Button("Search")
|
82 |
|
|
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Label("Lovdata rettsavgjørelser - semantisk søk")
|
69 |
+
gr.
|
70 |
|
71 |
case_dropdown = gr.Dropdown(label="Velg en rettsavgjørelse", choices=dropdown_opts, default=dropdown_opts[0])
|
72 |
# when case_dropdown changes, update the summary dropdown:
|
|
|
77 |
lines=1,
|
78 |
placeholder="Kollisjon mellom to kjøretøy.",
|
79 |
)
|
80 |
+
k_slider = gr.Slider(minimum=1, maximum=10, label="Number of matches", value=5, step=1)
|
81 |
|
82 |
search_btn = gr.Button("Search")
|
83 |
|