christopher commited on
Commit
9bfc50c
Β·
1 Parent(s): 52d9c79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,9 +8,9 @@ st.set_page_config(page_icon='πŸ‘©β€πŸ’»', layout="wide")
8
 
9
  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('### Outputs')
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
-
14
  st.sidebar.header("Settings:")
15
  settings_kwargs = dict()
16
  settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
@@ -31,6 +31,6 @@ with io.StringIO() as buf, redirect_stdout(buf):
31
 
32
  description = 'add two vectors with broadcasting to get a matrix'
33
  inputs = {'rows': [10, 20, 30],'cols': [1,2,3,4]}
34
- results = colab_interface.run_value_search_from_colab(eval(inputs), eval([[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')
 
8
 
9
  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(output)
14
  st.sidebar.header("Settings:")
15
  settings_kwargs = dict()
16
  settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
 
31
 
32
  description = 'add two vectors with broadcasting to get a matrix'
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')