Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,3 @@
|
|
| 1 |
-
# 建立 .streamlit/config.toml 避免 Hugging Face 權限錯誤
|
| 2 |
-
import os
|
| 3 |
-
os.makedirs(".streamlit", exist_ok=True)
|
| 4 |
-
with open(".streamlit/config.toml", "w") as f:
|
| 5 |
-
f.write("""
|
| 6 |
-
[server]
|
| 7 |
-
headless = true
|
| 8 |
-
port = 7860
|
| 9 |
-
enableCORS = true
|
| 10 |
-
""")
|
| 11 |
-
|
| 12 |
import streamlit as st
|
| 13 |
import joblib
|
| 14 |
import pandas as pd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import joblib
|
| 3 |
import pandas as pd
|