jin5605 commited on
Commit
46f5d6d
ยท
1 Parent(s): 0cc495d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -134,6 +134,10 @@ def main():
134
  if user_question:
135
  handle_userinput(user_question)
136
 
 
 
 
 
137
  with st.sidebar:
138
  st.subheader("Your documents")
139
  docs = st.file_uploader(
@@ -170,13 +174,4 @@ def main():
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`")
177
- else:
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()
 
134
  if user_question:
135
  handle_userinput(user_question)
136
 
137
+ # ์—ฌ๊ธฐ์— ์ถ”๊ฐ€: ์‚ฌ์šฉ์ž์—๊ฒŒ ์‹คํ–‰ ๋ฐฉ๋ฒ• ์•ˆ๋‚ด ๋ฉ”์‹œ์ง€
138
+ st.info("To view this Streamlit app in a browser, run it with the following command:\n\n"
139
+ "`streamlit run app.py [ARGUMENTS]`")
140
+
141
  with st.sidebar:
142
  st.subheader("Your documents")
143
  docs = st.file_uploader(
 
174
 
175
 
176
  if __name__ == '__main__':
 
 
 
 
 
 
 
 
 
177
  main()