Update app.py
Browse files
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 |
|