Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|