Spaces:
Runtime error
Runtime error
Commit
Β·
4b990c7
1
Parent(s):
e16c1f3
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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)
|