Spaces:
Sleeping
Sleeping
Salman11223
commited on
Commit
•
3c5ca6c
1
Parent(s):
fafc1c2
Update translate.py
Browse files- translate.py +7 -7
translate.py
CHANGED
@@ -28,13 +28,13 @@ class Translate:
|
|
28 |
return audio_path
|
29 |
|
30 |
def gender_detection(self):
|
31 |
-
gender_model_url = "https://salman11223-gender-detection.hf.space/--replicas/wml9f/"
|
32 |
-
gender_client = Client(gender_model_url)
|
33 |
-
gender = gender_client.predict(
|
34 |
-
|
35 |
-
)
|
36 |
-
print(gender)
|
37 |
-
return
|
38 |
|
39 |
|
40 |
|
|
|
28 |
return audio_path
|
29 |
|
30 |
def gender_detection(self):
|
31 |
+
# gender_model_url = "https://salman11223-gender-detection.hf.space/--replicas/wml9f/"
|
32 |
+
# gender_client = Client(gender_model_url)
|
33 |
+
# gender = gender_client.predict(
|
34 |
+
# 'audio.wav', api_name="/predict"
|
35 |
+
# )
|
36 |
+
# print(gender)
|
37 |
+
return "male"
|
38 |
|
39 |
|
40 |
|