Sandiago21 commited on
Commit
4dfe1f1
·
verified ·
1 Parent(s): bf2965d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1015,10 +1015,10 @@ mic_transcribe = gr.Interface(
1015
 
1016
 
1017
 
1018
- greek_translation_pipe = pipeline("text-generation", 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,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(translated_text)
1040
- return translated_text
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
  # --------------------------