Spaces:
Running
Running
Michael Natanael
commited on
Commit
·
aae98e8
1
Parent(s):
aad2b2d
Change AGE_LABELS = ["semua usia", "anak", "remaja", "dewasa"]
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ app = Flask(__name__)
|
|
40 |
# CHECKPOINT_URL = "https://github.com/michael2002porto/bert_classification_indonesian_song_lyrics/releases/download/finetuned_checkpoints/original_split_synthesized.ckpt"
|
41 |
CHECKPOINT_URL = "https://huggingface.co/nenafem/original_split_synthesized/resolve/main/original_split_synthesized.ckpt?download=true"
|
42 |
CHECKPOINT_PATH = "final_checkpoint/original_split_synthesized.ckpt"
|
43 |
-
AGE_LABELS = ["
|
44 |
DATABASE_URI = "postgresql://postgres.tcqmmongiztvqkxxebnc:[email protected]:6543/postgres"
|
45 |
|
46 |
# === CONNECT DATABASE ===
|
@@ -134,7 +134,7 @@ print(show_schema_info())
|
|
134 |
download_checkpoint_if_needed(CHECKPOINT_URL, CHECKPOINT_PATH)
|
135 |
|
136 |
# Load groq
|
137 |
-
client = Groq(api_key="
|
138 |
|
139 |
# Load tokenizer
|
140 |
tokenizer = BertTokenizer.from_pretrained("indolem/indobert-base-uncased")
|
|
|
40 |
# CHECKPOINT_URL = "https://github.com/michael2002porto/bert_classification_indonesian_song_lyrics/releases/download/finetuned_checkpoints/original_split_synthesized.ckpt"
|
41 |
CHECKPOINT_URL = "https://huggingface.co/nenafem/original_split_synthesized/resolve/main/original_split_synthesized.ckpt?download=true"
|
42 |
CHECKPOINT_PATH = "final_checkpoint/original_split_synthesized.ckpt"
|
43 |
+
AGE_LABELS = ["semua usia", "anak", "remaja", "dewasa"]
|
44 |
DATABASE_URI = "postgresql://postgres.tcqmmongiztvqkxxebnc:[email protected]:6543/postgres"
|
45 |
|
46 |
# === CONNECT DATABASE ===
|
|
|
134 |
download_checkpoint_if_needed(CHECKPOINT_URL, CHECKPOINT_PATH)
|
135 |
|
136 |
# Load groq
|
137 |
+
client = Groq(api_key="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")
|
138 |
|
139 |
# Load tokenizer
|
140 |
tokenizer = BertTokenizer.from_pretrained("indolem/indobert-base-uncased")
|