Skip to content

Commit d4c4551

Browse files
authored
Add files via upload
1 parent 84642df commit d4c4551

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWUI.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#from streamlit_extras.jupyterlite import jupyterlite
1717

1818

19-
version = "1.51"
19+
version = "1.51 hotfix"
2020

2121
st.set_page_config(
2222
page_title="Parrot OCE",
@@ -184,7 +184,7 @@ def translat(text):
184184

185185
col1, col2 = st.columns([0.7,0.3])
186186
with col1:
187-
codes = st_ace(language='python',theme='chaos',height=500, font_size=col2.number_input("字体大小", 16, 24, 16),auto_update=True,value=st.session_state['codes'])
187+
codes = st_ace(language='python',theme='chaos',height=500, font_size=col2.number_input("字体大小", 16, 24, 16),auto_update=False,value=st.session_state['codes'],)
188188
#jupyterlite(600, 1600)
189189
st.session_state['codes'] = codes
190190
# Display editor's content as you type
@@ -218,7 +218,8 @@ def translat(text):
218218
allowth = True
219219
sp = True
220220
found_usp = []
221-
for i in Unsupported:
221+
if not Demo_mode:
222+
for i in Unsupported:
222223
if not 'R' in i:
223224
if f"import {i}" in code:
224225
sp = False

0 commit comments

Comments
 (0)