christopher commited on
Commit
72e9fb8
·
1 Parent(s): cacce40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -15,9 +15,7 @@ with col2:
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(output)
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,6 +33,6 @@ settings = value_search_settings.from_dict({
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')
 
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(output)
18
+ description = st.text_input(label="Description", placeholder="An optional natural language description of the operation", value="add two vectors with broadcasting to get a matrix")
 
 
19
  st.sidebar.header("Settings:")
20
  settings_kwargs = dict()
21
  settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
 
33
 
34
  with io.StringIO() as buf, redirect_stdout(buf):
35
  constants = []
36
+ results = colab_interface.run_value_search_from_colab(i, o, constants, description, settings)
37
  stdout = buf.getvalue()
38
  st.code(stdout, language='bash')