christopher commited on
Commit
4b990c7
β€’
1 Parent(s): e16c1f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,9 +3,13 @@ import streamlit as st
3
  from tf_coder.value_search import colab_interface, value_search_settings
4
  import io
5
  from contextlib import redirect_stdout
 
6
  st.set_page_config(page_icon='πŸ‘©β€πŸ’»', layout="wide")
7
 
8
- inputs = st.text_area('The input tensor(s) specified as key-value pairs', placeholder="{'rows': [10, 20, 30],'cols': [1,2,3,4]}")
 
 
 
9
  st.sidebar.header("Settings:")
10
  settings_kwargs = dict()
11
  settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)
 
3
  from tf_coder.value_search import colab_interface, value_search_settings
4
  import io
5
  from contextlib import redirect_stdout
6
+ from streamlit_ace import st_ace
7
  st.set_page_config(page_icon='πŸ‘©β€πŸ’»', layout="wide")
8
 
9
+
10
+ #inputs = st.text_area('The input tensor(s) specified as key-value pairs', placeholder="{'rows': [10, 20, 30],'cols': [1,2,3,4]}")
11
+ inputs = st_ace(text="{'rows': [10, 20, 30],'cols': [1,2,3,4]}", language="python")
12
+ st.write(inputs)
13
  st.sidebar.header("Settings:")
14
  settings_kwargs = dict()
15
  settings_kwargs["require_all_inputs_used"] = st.sidebar.checkbox("Require All Inputs", value=True)