ysharma HF staff commited on
Commit
65afe97
1 Parent(s): f5ef1bf
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ def driver_fun(audio) :
79
  print(f"data : {data} ")
80
  max_match_score = max(data)
81
  indx_score = data.index(max_match_score)
82
- joke = max_match_score[indx_score]
83
  #if translation
84
  #For now only taking in English text for Bloom prompting as inference model is not high spec
85
  #text_generated = lang_model_response(transcribe, lang)
@@ -134,7 +134,7 @@ demo = gr.Blocks()
134
  with demo:
135
  gr.Markdown("<h1><center>AI Assistant - Voice to Joke</center></h1>")
136
  gr.Markdown(
137
- """Model pipeline consisting of - <br>- [**Whisper**](https://github.com/openai/whisper) for Speech-to-text, <br>- [**CoquiTTS**](https://huggingface.co/coqui) for Text-To-Speech. <br>- Front end is built using [**Gradio Block API**](https://gradio.app/docs/#blocks).<br><br>Both CoquiTTS and Whisper are Multilingual, there are several overlapping languages between them. Hence it would be suggested to test this ML-App using these two languages to get the best results</u>.<br>If you want to reuse the App, simply click on the small cross button in the top right corner of your voice record panel, and then press record again!
138
  """)
139
  with gr.Row():
140
  with gr.Column():
 
79
  print(f"data : {data} ")
80
  max_match_score = max(data)
81
  indx_score = data.index(max_match_score)
82
+ joke = data[indx_score]
83
  #if translation
84
  #For now only taking in English text for Bloom prompting as inference model is not high spec
85
  #text_generated = lang_model_response(transcribe, lang)
 
134
  with demo:
135
  gr.Markdown("<h1><center>AI Assistant - Voice to Joke</center></h1>")
136
  gr.Markdown(
137
+ """work in porgress<br><br><br>Model pipeline consisting of - <br>- [**Whisper**](https://github.com/openai/whisper) for Speech-to-text, <br>- [**CoquiTTS**](https://huggingface.co/coqui) for Text-To-Speech. <br>- Front end is built using [**Gradio Block API**](https://gradio.app/docs/#blocks).<br><br>Both CoquiTTS and Whisper are Multilingual, there are several overlapping languages between them. Hence it would be suggested to test this ML-App using these two languages to get the best results</u>.<br>If you want to reuse the App, simply click on the small cross button in the top right corner of your voice record panel, and then press record again!
138
  """)
139
  with gr.Row():
140
  with gr.Column():