openfree commited on
Commit
ba0297e
ยท
verified ยท
1 Parent(s): 0eeceac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -1,21 +1,7 @@
1
  import os
2
- import sys
3
  import json
4
  from typing import List, Dict, Tuple
5
 
6
- # Streamlit ์‹คํ–‰ ํ™•์ธ
7
- def _running_in_streamlit() -> bool:
8
- try:
9
- from streamlit.runtime.scriptrunner import get_script_run_ctx
10
- return get_script_run_ctx() is not None
11
- except Exception:
12
- return False
13
-
14
- if not _running_in_streamlit():
15
- print("์ด ์•ฑ์€ Streamlit ์„œ๋ฒ„๋กœ ์‹คํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.")
16
- print("๋ช…๋ น: streamlit run app.py --server.port=8501 --server.address=0.0.0.0")
17
- sys.exit(0)
18
-
19
  import streamlit as st
20
  import requests
21
 
 
1
  import os
 
2
  import json
3
  from typing import List, Dict, Tuple
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  import streamlit as st
6
  import requests
7