Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1015,10 +1015,10 @@ mic_transcribe = gr.Interface(
|
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
-
greek_translation_pipe = pipeline("
|
| 1019 |
|
| 1020 |
-
def translate_from_greek_english(text):
|
| 1021 |
-
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
|
@@ -1035,9 +1035,9 @@ def answer_question(user_question):
|
|
| 1035 |
|
| 1036 |
def answer_from_audio(audio):
|
| 1037 |
text = transcribe_speech(audio)
|
| 1038 |
-
translated_text = translate_from_greek_english(text)
|
| 1039 |
-
# return answer_question(
|
| 1040 |
-
return
|
| 1041 |
|
| 1042 |
|
| 1043 |
# --------------------------
|
|
|
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
+
# greek_translation_pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-el-en")
|
| 1019 |
|
| 1020 |
+
# def translate_from_greek_english(text):
|
| 1021 |
+
# return greek_translation_pipe(text)[0]["translation_text"]
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
|
|
|
| 1035 |
|
| 1036 |
def answer_from_audio(audio):
|
| 1037 |
text = transcribe_speech(audio)
|
| 1038 |
+
# translated_text = translate_from_greek_english(text)
|
| 1039 |
+
# return answer_question(text)
|
| 1040 |
+
return text
|
| 1041 |
|
| 1042 |
|
| 1043 |
# --------------------------
|