Update app_rvc.py
Browse files- app_rvc.py +3 -3
app_rvc.py
CHANGED
@@ -449,7 +449,7 @@ class SoniTranslate(SoniTrCache):
|
|
449 |
if YOUR_HF_TOKEN is None:
|
450 |
YOUR_HF_TOKEN = ""
|
451 |
elif not YOUR_HF_TOKEN:
|
452 |
-
raise ValueError("
|
453 |
else:
|
454 |
os.environ["YOUR_HF_TOKEN"] = YOUR_HF_TOKEN
|
455 |
|
@@ -841,7 +841,7 @@ class SoniTranslate(SoniTrCache):
|
|
841 |
chunk_size=1800,
|
842 |
source=lang_source,
|
843 |
)
|
844 |
-
logger.debug("Translation
|
845 |
logger.debug(self.result_diarize)
|
846 |
|
847 |
if get_translated_text:
|
@@ -1494,7 +1494,7 @@ def create_gui(theme, logs_in_gui=False):
|
|
1494 |
with gr.Row():
|
1495 |
with gr.Column():
|
1496 |
input_data_type = gr.Dropdown(
|
1497 |
-
["
|
1498 |
value="SUBMIT VIDEO",
|
1499 |
label=lg_conf["video_source"],
|
1500 |
)
|
|
|
449 |
if YOUR_HF_TOKEN is None:
|
450 |
YOUR_HF_TOKEN = ""
|
451 |
elif not YOUR_HF_TOKEN:
|
452 |
+
raise ValueError("SpeechTech token မှားနေပါတယ်။ token ကို Infinity Tech မှဝယ်ယူနိုင်ပါတယ်")
|
453 |
else:
|
454 |
os.environ["YOUR_HF_TOKEN"] = YOUR_HF_TOKEN
|
455 |
|
|
|
841 |
chunk_size=1800,
|
842 |
source=lang_source,
|
843 |
)
|
844 |
+
logger.debug("Translation ပြီးသွားပါပြီ")
|
845 |
logger.debug(self.result_diarize)
|
846 |
|
847 |
if get_translated_text:
|
|
|
1494 |
with gr.Row():
|
1495 |
with gr.Column():
|
1496 |
input_data_type = gr.Dropdown(
|
1497 |
+
["VIDEO တင်မယ်", "URL လင့်", "Find Video Path"],
|
1498 |
value="SUBMIT VIDEO",
|
1499 |
label=lg_conf["video_source"],
|
1500 |
)
|