christopher commited on
Commit
8e651c3
·
1 Parent(s): 8485e46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -10,17 +10,6 @@ inputs = st.text_area('The input tensor(s) specified as key-value pairs', placeh
10
  'cols': [1,2,3,4],
11
  '''
12
  # The single desired output tensor.
13
- output = [[11, 12, 13, 14],
14
- [21, 22, 23, 24],
15
- [31, 32, 33, 34]]
16
-
17
- # A list of relevant scalar constants (if any).
18
- constants = []
19
-
20
- # An English description of the tensor manipulation.
21
- description = 'add two vectors with broadcasting to get a matrix'
22
-
23
- return inputs, output, constants, description
24
 
25
  settings = value_search_settings.from_dict({
26
  'timeout': 300,
@@ -33,7 +22,16 @@ settings = value_search_settings.from_dict({
33
  i = st.text_area("input tensor","second test")
34
 
35
  with io.StringIO() as buf, redirect_stdout(buf):
 
 
 
 
 
 
 
 
 
36
  _ , output, constants, description = get_problem()
37
  results = colab_interface.run_value_search_from_colab(inputs, output, constants, description, settings)
38
- output = buf.getvalue()
39
- st.code(output, language='bash')
 
10
  'cols': [1,2,3,4],
11
  '''
12
  # The single desired output tensor.
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  settings = value_search_settings.from_dict({
15
  'timeout': 300,
 
22
  i = st.text_area("input tensor","second test")
23
 
24
  with io.StringIO() as buf, redirect_stdout(buf):
25
+ output = [[11, 12, 13, 14],
26
+ [21, 22, 23, 24],
27
+ [31, 32, 33, 34]]
28
+
29
+ # A list of relevant scalar constants (if any).
30
+ constants = []
31
+
32
+ # An English description of the tensor manipulation.
33
+ description = 'add two vectors with broadcasting to get a matrix'
34
  _ , output, constants, description = get_problem()
35
  results = colab_interface.run_value_search_from_colab(inputs, output, constants, description, settings)
36
+ stdout = buf.getvalue()
37
+ st.code(stdout, language='bash')