mohcineelharras commited on
Commit
9c39d43
Β·
1 Parent(s): 8544289

updated layout and footer

Browse files
Files changed (1) hide show
  1. app.py +30 -4
app.py CHANGED
@@ -182,9 +182,19 @@ def clear_memory():
182
  # Gradio Interface
183
  #theme="dark"
184
  with gr.Blocks(title="Whisper-LLM-TTS") as app:
185
- gr.Markdown("## πŸ€– 'Whispering' LLM with a TTS Twist! πŸ“š")
186
- gr.Markdown("πŸš€ Engage in a not-so-secret chat with an open-source LLM that whispers back!")
187
- gr.Markdown("πŸ‘¨β€πŸ’» Crafted with a sprinkle of code magic (and a few cups of coffee) by **@mohcineelharras** β€” not your average tech wizard!")
 
 
 
 
 
 
 
 
 
 
188
 
189
  with gr.Row():
190
  with gr.Column():
@@ -246,5 +256,21 @@ with gr.Blocks(title="Whisper-LLM-TTS") as app:
246
 
247
  submit_button.click(complete_prompt, inputs=[question_input], outputs=[llm_response_output])
248
  tts_button.click(convert_text_to_speech, inputs=[llm_response_output], outputs=[tts_audio_output])
249
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  app.launch()
 
182
  # Gradio Interface
183
  #theme="dark"
184
  with gr.Blocks(title="Whisper-LLM-TTS") as app:
185
+ gr.Markdown("# πŸ€– 'Whispering' LLM with a TTS Twist! πŸ“š")
186
+
187
+ # Professional Warning Message
188
+ gr.Markdown("""
189
+ ## ⚠️ Warning:
190
+ - If you are experiencing slow execution, please consider clearing the memory by pressing the button below and refreshing the page.
191
+ - The execution time will highly dependant on the hardware and the length of your audio.
192
+ - The execution might be slow due to hardware limitations on this free Hugging Face interface. It could go from 1 to 3 minutes.
193
+ - If you've got a GPU locally, the execution could be a lot faster (approximately 5 seconds on my local machine).
194
+ """)
195
+ # App Description
196
+ gr.Markdown("""πŸš€ Engage in a not-so-secret chat with an open-source LLM that whispers back!"\n
197
+ πŸ‘¨β€πŸ’» Crafted with a sprinkle of code magic (and a few cups of coffee) by **@mohcineelharras**""")
198
 
199
  with gr.Row():
200
  with gr.Column():
 
256
 
257
  submit_button.click(complete_prompt, inputs=[question_input], outputs=[llm_response_output])
258
  tts_button.click(convert_text_to_speech, inputs=[llm_response_output], outputs=[tts_audio_output])
259
+ gr.Markdown("""
260
+ <div style="text-align: center; margin-top: 20px;">
261
+ <a href="https://github.com/mohcineelharras/whisper-llm-gtts" target="_blank" style="margin: 10px; display: inline-block;">
262
+ <img src="https://img.shields.io/badge/Repository-333?logo=github&style=for-the-badge" alt="Repository" style="vertical-align: middle;">
263
+ <a href="https://www.linkedin.com/in/mohcine-el-harras" target="_blank" style="margin: 10px; display: inline-block;">
264
+ <img src="https://img.shields.io/badge/-LinkedIn-0077B5?style=for-the-badge&logo=linkedin" alt="LinkedIn" style="vertical-align: middle;">
265
+ </a>
266
+ </a>
267
+ <a href="https://mohcineelharras.github.io" target="_blank" style="margin: 10px; display: inline-block;">
268
+ <img src="https://img.shields.io/badge/Visit-Portfolio-9cf?style=for-the-badge" alt="GitHub" style="vertical-align: middle;">
269
+ </a>
270
+ </div>
271
+ <div style="text-align: center; margin-top: 20px; color: #666; font-size: 0.85em;">
272
+ Β© 2023 Mohcine EL HARRAS
273
+ </div>
274
+
275
+ """)
276
  app.launch()