Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -328,7 +328,8 @@ def transcribe_hindi(speech):
|
|
| 328 |
if text is None:
|
| 329 |
return "Error: ASR returned None"
|
| 330 |
|
| 331 |
-
hindi_map = {
|
|
|
|
| 332 |
"जीरो": "0",
|
| 333 |
"वन" : "1",
|
| 334 |
"टू" : "2",
|
|
@@ -336,7 +337,6 @@ def transcribe_hindi(speech):
|
|
| 336 |
"फोर" : "4",
|
| 337 |
"फाइव": "5",
|
| 338 |
"सिक्स": "6",
|
| 339 |
-
"सेवन": "7",
|
| 340 |
"एट": "8",
|
| 341 |
"नाइन": "9",
|
| 342 |
"टेन": "10",
|
|
@@ -345,7 +345,9 @@ def transcribe_hindi(speech):
|
|
| 345 |
"तीन": "3",
|
| 346 |
"चार": "4",
|
| 347 |
"पांच": "5",
|
|
|
|
| 348 |
"छह": "6",
|
|
|
|
| 349 |
"सात": "7",
|
| 350 |
"आठ": "8",
|
| 351 |
"नौ": "9",
|
|
|
|
| 328 |
if text is None:
|
| 329 |
return "Error: ASR returned None"
|
| 330 |
|
| 331 |
+
hindi_map = {
|
| 332 |
+
"सेवन": "7",
|
| 333 |
"जीरो": "0",
|
| 334 |
"वन" : "1",
|
| 335 |
"टू" : "2",
|
|
|
|
| 337 |
"फोर" : "4",
|
| 338 |
"फाइव": "5",
|
| 339 |
"सिक्स": "6",
|
|
|
|
| 340 |
"एट": "8",
|
| 341 |
"नाइन": "9",
|
| 342 |
"टेन": "10",
|
|
|
|
| 345 |
"तीन": "3",
|
| 346 |
"चार": "4",
|
| 347 |
"पांच": "5",
|
| 348 |
+
"पाँच": "5",
|
| 349 |
"छह": "6",
|
| 350 |
+
"छः": "6",
|
| 351 |
"सात": "7",
|
| 352 |
"आठ": "8",
|
| 353 |
"नौ": "9",
|