Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -19,7 +19,7 @@ transformers.logging.set_verbosity_error()
|
|
| 19 |
st.set_page_config(page_title="Trình sinh tiêu đề", layout="centered")
|
| 20 |
|
| 21 |
# Cấu hình Gemini API (thay YOUR_GEMINI_API_KEY bằng API key thực tế)
|
| 22 |
-
GEMINI_API_KEY = "
|
| 23 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 24 |
|
| 25 |
# Các mô hình
|
|
@@ -43,7 +43,7 @@ TITLE_MODELS = {
|
|
| 43 |
"model_type": "seq2seq"
|
| 44 |
},
|
| 45 |
"Gemini Title Generator": {
|
| 46 |
-
"model_path": "gemini-1.5-
|
| 47 |
"tokenizer_path": None,
|
| 48 |
"token": False,
|
| 49 |
"model_type": "gemini"
|
|
@@ -64,7 +64,7 @@ SUMMARIZATION_MODELS = {
|
|
| 64 |
"model_type": "seq2seq"
|
| 65 |
},
|
| 66 |
"Gemini Summarization": {
|
| 67 |
-
"model_path": "gemini-1.5-
|
| 68 |
"tokenizer_path": None,
|
| 69 |
"token": False,
|
| 70 |
"model_type": "gemini"
|
|
|
|
| 19 |
st.set_page_config(page_title="Trình sinh tiêu đề", layout="centered")
|
| 20 |
|
| 21 |
# Cấu hình Gemini API (thay YOUR_GEMINI_API_KEY bằng API key thực tế)
|
| 22 |
+
GEMINI_API_KEY = "AIzaSyCEDRquPDC9N09hTHGD9FfvsPP83AZT78Q" # Thay bằng API key thực tế của bạn
|
| 23 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 24 |
|
| 25 |
# Các mô hình
|
|
|
|
| 43 |
"model_type": "seq2seq"
|
| 44 |
},
|
| 45 |
"Gemini Title Generator": {
|
| 46 |
+
"model_path": "gemini-1.5-flash",
|
| 47 |
"tokenizer_path": None,
|
| 48 |
"token": False,
|
| 49 |
"model_type": "gemini"
|
|
|
|
| 64 |
"model_type": "seq2seq"
|
| 65 |
},
|
| 66 |
"Gemini Summarization": {
|
| 67 |
+
"model_path": "gemini-1.5-flash",
|
| 68 |
"tokenizer_path": None,
|
| 69 |
"token": False,
|
| 70 |
"model_type": "gemini"
|