Spaces:
Running
Running
Commit
·
e16c1f3
1
Parent(s):
faef71a
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,13 @@ inputs = st.text_area('The input tensor(s) specified as key-value pairs', placeh
|
|
9 |
st.sidebar.header("Settings:")
|
10 |
settings_kwargs = dict()
|
11 |
settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
|
|
|
12 |
settings_kwargs["max_solutions"] = st.sidebar.slider("Maximum number of solutions", value=1, min_value=1, step=1, max_value=256)
|
|
|
13 |
|
14 |
settings = value_search_settings.from_dict({
|
15 |
-
'timeout':
|
16 |
-
'only_minimal_solutions':
|
17 |
'max_solutions': settings_kwargs["max_solutions"],
|
18 |
'require_all_inputs_used': settings_kwargs["require_all_inputs_used"],
|
19 |
'require_one_input_used': not settings_kwargs["require_all_inputs_used"],
|
|
|
9 |
st.sidebar.header("Settings:")
|
10 |
settings_kwargs = dict()
|
11 |
settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
|
12 |
+
settings_kwargs["only_minimal_solutions"] = st.sidebar.checkbox("Only Minimal Solutions", value=False)
|
13 |
settings_kwargs["max_solutions"] = st.sidebar.slider("Maximum number of solutions", value=1, min_value=1, step=1, max_value=256)
|
14 |
+
settings_kwargs["timeout"] = st.sidebar.slider("Timeout in seconds", value=300, min_value=1, step=10, max_value=300)
|
15 |
|
16 |
settings = value_search_settings.from_dict({
|
17 |
+
'timeout': settings_kwargs["timeout"],
|
18 |
+
'only_minimal_solutions': settings_kwargs["only_minimal_solutions"],
|
19 |
'max_solutions': settings_kwargs["max_solutions"],
|
20 |
'require_all_inputs_used': settings_kwargs["require_all_inputs_used"],
|
21 |
'require_one_input_used': not settings_kwargs["require_all_inputs_used"],
|