Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
| 11 |
if HF_TOKEN is None:
|
| 12 |
raise ValueError("Hugging Face token not found. Please set the HF_TOKEN secret in your Space settings.")
|
| 13 |
|
| 14 |
-
MODEL_ID = "breadlicker45/bilingual-
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 16 |
print(f"Using device: {device}")
|
| 17 |
|
|
@@ -60,7 +60,7 @@ def classify_gender(text: str) -> dict:
|
|
| 60 |
|
| 61 |
DESCRIPTION = """
|
| 62 |
## Bilingual Gender Classifier
|
| 63 |
-
This is a demo for the
|
| 64 |
Enter a sentence and the model will predict whether the text has a male, female, or non-binary.
|
| 65 |
**Disclaimer:** This model, like any AI, can have biases and may not always be accurate.
|
| 66 |
"""
|
|
|
|
| 11 |
if HF_TOKEN is None:
|
| 12 |
raise ValueError("Hugging Face token not found. Please set the HF_TOKEN secret in your Space settings.")
|
| 13 |
|
| 14 |
+
MODEL_ID = "breadlicker45/bilingual-base-gender-v4.1-test"
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 16 |
print(f"Using device: {device}")
|
| 17 |
|
|
|
|
| 60 |
|
| 61 |
DESCRIPTION = """
|
| 62 |
## Bilingual Gender Classifier
|
| 63 |
+
This is a demo for the model `bilingual-base-gender-v4.1-test`.
|
| 64 |
Enter a sentence and the model will predict whether the text has a male, female, or non-binary.
|
| 65 |
**Disclaimer:** This model, like any AI, can have biases and may not always be accurate.
|
| 66 |
"""
|