mintlee commited on
Commit
28792ce
·
1 Parent(s): 0641e5b

change upload size

Browse files
Files changed (1) hide show
  1. pages/upload.py +3 -2
pages/upload.py CHANGED
@@ -13,6 +13,7 @@ import dotenv
13
  import os
14
 
15
  dotenv.load_dotenv(".env")
 
16
 
17
  # Cấu hình API key
18
  api_key = os.getenv("GEMINI_API_KEY")
@@ -20,11 +21,11 @@ genai.configure(api_key=api_key)
20
  model = genai.GenerativeModel("gemini-1.5-flash")
21
 
22
  # Giao diện Streamlit
23
- st.title("Upload PPTX to MongoDB")
24
 
25
  # st.set_option("server.fileUploader.allowMediaFiles", True)
26
  uploaded_file = st.file_uploader("Chọn file")
27
- target_lang = st.selectbox("Chọn ngôn ngữ dịch", ["english", "vietnamese"])
28
 
29
  final_pptx_id = None # Biến lưu ID file sau khi xử lý
30
 
 
13
  import os
14
 
15
  dotenv.load_dotenv(".env")
16
+ st.set_option("server.maxUploadSize", 1024)
17
 
18
  # Cấu hình API key
19
  api_key = os.getenv("GEMINI_API_KEY")
 
21
  model = genai.GenerativeModel("gemini-1.5-flash")
22
 
23
  # Giao diện Streamlit
24
+ st.title("Please chose your PPTX, Excel file to translate")
25
 
26
  # st.set_option("server.fileUploader.allowMediaFiles", True)
27
  uploaded_file = st.file_uploader("Chọn file")
28
+ target_lang = st.selectbox("Chọn ngôn ngữ bạn muốn dịch sang", ["english", "vietnamese"])
29
 
30
  final_pptx_id = None # Biến lưu ID file sau khi xử lý
31