Spaces:
Sleeping
Sleeping
wenbemi
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
# ์ค์ ํ์ผ ๊ฒฝ๋ก๋ฅผ ์ฑ ๋ด๋ถ์ ์ฐ๊ธฐ ๊ฐ๋ฅํ ๊ฒฝ๋ก๋ก ๊ฐ์ ์ง์ ํฉ๋๋ค.
|
| 3 |
import os, pathlib
|
| 4 |
from huggingface_hub import hf_hub_download
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
APP_DIR = pathlib.Path(__file__).parent.resolve()
|
| 7 |
os.environ.setdefault("HOME", str(APP_DIR)) # '~'๊ฐ /๊ฐ ์๋๋ผ /app์ผ๋ก ๊ฐ๋๋ก
|
|
@@ -49,10 +53,7 @@ def load_csv_smart(local_path: str, hub_filename: str,
|
|
| 49 |
except UnicodeDecodeError:
|
| 50 |
return pd.read_csv(cached, encoding="cp949")
|
| 51 |
|
| 52 |
-
|
| 53 |
-
import json
|
| 54 |
-
import os
|
| 55 |
-
import random
|
| 56 |
|
| 57 |
import streamlit as st
|
| 58 |
from streamlit.components.v1 import html
|
|
|
|
| 2 |
# ์ค์ ํ์ผ ๊ฒฝ๋ก๋ฅผ ์ฑ ๋ด๋ถ์ ์ฐ๊ธฐ ๊ฐ๋ฅํ ๊ฒฝ๋ก๋ก ๊ฐ์ ์ง์ ํฉ๋๋ค.
|
| 3 |
import os, pathlib
|
| 4 |
from huggingface_hub import hf_hub_download
|
| 5 |
+
import pandas as pd
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
import random
|
| 9 |
|
| 10 |
APP_DIR = pathlib.Path(__file__).parent.resolve()
|
| 11 |
os.environ.setdefault("HOME", str(APP_DIR)) # '~'๊ฐ /๊ฐ ์๋๋ผ /app์ผ๋ก ๊ฐ๋๋ก
|
|
|
|
| 53 |
except UnicodeDecodeError:
|
| 54 |
return pd.read_csv(cached, encoding="cp949")
|
| 55 |
|
| 56 |
+
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
import streamlit as st
|
| 59 |
from streamlit.components.v1 import html
|