jin5605 commited on
Commit
0cc495d
·
1 Parent(s): d6c9428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -170,9 +170,7 @@ def main():
170
 
171
 
172
  if __name__ == '__main__':
173
- main()
174
-
175
- import sys
176
  if "streamlit" in sys.argv[0]: # 이미 streamlit 명령이 있는지 확인
177
  st.warning("to view this Streamlit app on a browser, run it with the following command:\n\nstreamlit run app.py [ARGUMENTS]")
178
  st.warning("Session state does not function when running a script without `streamlit run`")
@@ -180,4 +178,5 @@ import sys
180
  streamlit_run_command = "streamlit run app.py [ARGUMENTS]"
181
  st.warning(f"to view this Streamlit app on a browser, run it with the following command:\n\n{streamlit_run_command}")
182
  st.warning("Session state does not function when running a script without `streamlit run`")
183
- sys.exit(1) # 프로그램 종료
 
 
170
 
171
 
172
  if __name__ == '__main__':
173
+ import sys
 
 
174
  if "streamlit" in sys.argv[0]: # 이미 streamlit 명령이 있는지 확인
175
  st.warning("to view this Streamlit app on a browser, run it with the following command:\n\nstreamlit run app.py [ARGUMENTS]")
176
  st.warning("Session state does not function when running a script without `streamlit run`")
 
178
  streamlit_run_command = "streamlit run app.py [ARGUMENTS]"
179
  st.warning(f"to view this Streamlit app on a browser, run it with the following command:\n\n{streamlit_run_command}")
180
  st.warning("Session state does not function when running a script without `streamlit run`")
181
+ sys.exit(1) # 프로그램 종료
182
+ main()