Spaces:
Running
Running
Commit
·
54fa46c
1
Parent(s):
9bfc50c
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ st.write('### Inputs')
|
|
10 |
inputs = st_ace(placeholder="The input tensor(s) specified as a dictionary", value="{'rows': [10, 20, 30],\n'cols': [1,2,3,4]}", language="python", theme="solarized_dark")
|
11 |
st.write('### Output')
|
12 |
output = st_ace(placeholder="The output tensor", value="[[11, 12, 13, 14],\n[21, 22, 23, 24],\n[31, 32, 33, 34]]", language="python", theme="solarized_dark")
|
13 |
-
st.write(
|
14 |
st.sidebar.header("Settings:")
|
15 |
settings_kwargs = dict()
|
16 |
settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
|
@@ -33,4 +33,4 @@ with io.StringIO() as buf, redirect_stdout(buf):
|
|
33 |
inputs = {'rows': [10, 20, 30],'cols': [1,2,3,4]}
|
34 |
results = colab_interface.run_value_search_from_colab(eval(inputs), [[11, 12, 13, 14],[21, 22, 23, 24],[31, 32, 33, 34]], constants, description, settings)
|
35 |
stdout = buf.getvalue()
|
36 |
-
st.code(stdout, language='bash')
|
|
|
10 |
inputs = st_ace(placeholder="The input tensor(s) specified as a dictionary", value="{'rows': [10, 20, 30],\n'cols': [1,2,3,4]}", language="python", theme="solarized_dark")
|
11 |
st.write('### Output')
|
12 |
output = st_ace(placeholder="The output tensor", value="[[11, 12, 13, 14],\n[21, 22, 23, 24],\n[31, 32, 33, 34]]", language="python", theme="solarized_dark")
|
13 |
+
st.write(eval(inputs))
|
14 |
st.sidebar.header("Settings:")
|
15 |
settings_kwargs = dict()
|
16 |
settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
|
|
|
33 |
inputs = {'rows': [10, 20, 30],'cols': [1,2,3,4]}
|
34 |
results = colab_interface.run_value_search_from_colab(eval(inputs), [[11, 12, 13, 14],[21, 22, 23, 24],[31, 32, 33, 34]], constants, description, settings)
|
35 |
stdout = buf.getvalue()
|
36 |
+
st.code(stdout, language='bash')
|