Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def load_model():
|
|
14 |
return model
|
15 |
|
16 |
def main():
|
17 |
-
st.title("
|
18 |
st.markdown("上傳文本檔案,生成繁中重點摘要")
|
19 |
|
20 |
# 讀取 API_KEY 從 Environment Variables
|
@@ -26,7 +26,7 @@ def main():
|
|
26 |
# 讓用戶上傳文件
|
27 |
uploaded_file = st.file_uploader("上傳 txt 文件", type=["txt"])
|
28 |
if not uploaded_file:
|
29 |
-
st.info("
|
30 |
return
|
31 |
|
32 |
# 讀取文件內容
|
|
|
14 |
return model
|
15 |
|
16 |
def main():
|
17 |
+
st.title("智慧文件摘要")
|
18 |
st.markdown("上傳文本檔案,生成繁中重點摘要")
|
19 |
|
20 |
# 讀取 API_KEY 從 Environment Variables
|
|
|
26 |
# 讓用戶上傳文件
|
27 |
uploaded_file = st.file_uploader("上傳 txt 文件", type=["txt"])
|
28 |
if not uploaded_file:
|
29 |
+
st.info("請選擇文件...")
|
30 |
return
|
31 |
|
32 |
# 讀取文件內容
|