Spaces:
Runtime error
Runtime error
Commit
·
b62a466
1
Parent(s):
99b2550
adding whisper feature for duration
Browse files- whisper_app.py +0 -1
whisper_app.py
CHANGED
|
@@ -55,7 +55,6 @@ class WHISPERModel:
|
|
| 55 |
return text_data
|
| 56 |
|
| 57 |
|
| 58 |
-
|
| 59 |
@retry(wait=wait_random(min=5, max=10))
|
| 60 |
def translate_text(self, text, orginal_text='ar', convert_to='english'):
|
| 61 |
prompt = f'Translate the following {orginal_text} text to {convert_to}:\n\n{orginal_text}: ' + text + '\n{convert_to}:'
|
|
|
|
| 55 |
return text_data
|
| 56 |
|
| 57 |
|
|
|
|
| 58 |
@retry(wait=wait_random(min=5, max=10))
|
| 59 |
def translate_text(self, text, orginal_text='ar', convert_to='english'):
|
| 60 |
prompt = f'Translate the following {orginal_text} text to {convert_to}:\n\n{orginal_text}: ' + text + '\n{convert_to}:'
|