Spaces:
Running
Running
Commit
·
1c78c39
1
Parent(s):
5201e45
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,10 @@ with col2:
|
|
14 |
st.write('### Output')
|
15 |
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")
|
16 |
i = eval(inputs)
|
|
|
|
|
|
|
|
|
17 |
st.sidebar.header("Settings:")
|
18 |
settings_kwargs = dict()
|
19 |
settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
|
@@ -31,9 +35,6 @@ settings = value_search_settings.from_dict({
|
|
31 |
|
32 |
with io.StringIO() as buf, redirect_stdout(buf):
|
33 |
constants = []
|
34 |
-
|
35 |
-
description = 'add two vectors with broadcasting to get a matrix'
|
36 |
-
inputs = {'rows': [10, 20, 30],'cols': [1,2,3,4]}
|
37 |
results = colab_interface.run_value_search_from_colab(i, [[11, 12, 13, 14],[21, 22, 23, 24],[31, 32, 33, 34]], constants, description, settings)
|
38 |
stdout = buf.getvalue()
|
39 |
st.code(stdout, language='bash')
|
|
|
14 |
st.write('### Output')
|
15 |
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")
|
16 |
i = eval(inputs)
|
17 |
+
o = eval(outputs)
|
18 |
+
st.write(type(o))
|
19 |
+
st.write(o)
|
20 |
+
description = st.text_input(placeholder="", value="add two vectors with broadcasting to get a matrix")
|
21 |
st.sidebar.header("Settings:")
|
22 |
settings_kwargs = dict()
|
23 |
settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
|
|
|
35 |
|
36 |
with io.StringIO() as buf, redirect_stdout(buf):
|
37 |
constants = []
|
|
|
|
|
|
|
38 |
results = colab_interface.run_value_search_from_colab(i, [[11, 12, 13, 14],[21, 22, 23, 24],[31, 32, 33, 34]], constants, description, settings)
|
39 |
stdout = buf.getvalue()
|
40 |
st.code(stdout, language='bash')
|