ajsbsd commited on
Commit
2909742
·
verified ·
1 Parent(s): 3b520e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -40,6 +40,10 @@ whisper_processor = None
40
  whisper_model = None
41
  first_load = True
42
 
 
 
 
 
43
  # --- Helper: Split Text Into Chunks ---
44
  def split_text_into_chunks(text, max_chars=400):
45
  sentences = text.replace("...", ".").split(". ")
@@ -205,5 +209,7 @@ with gr.Blocks() as demo:
205
 
206
  clear_btn = gr.Button("Clear All")
207
  clear_btn.click(lambda: ([], "", None), None, [chatbot, text_input, audio_output])
 
 
208
 
209
  demo.queue().launch()
 
40
  whisper_model = None
41
  first_load = True
42
 
43
+ def load_readme():
44
+ with open("README.md", "r", encoding="utf-8") as f:
45
+ return f.read()
46
+
47
  # --- Helper: Split Text Into Chunks ---
48
  def split_text_into_chunks(text, max_chars=400):
49
  sentences = text.replace("...", ".").split(". ")
 
209
 
210
  clear_btn = gr.Button("Clear All")
211
  clear_btn.click(lambda: ([], "", None), None, [chatbot, text_input, audio_output])
212
+ gr.Markdown("---")
213
+ gr.Markdown(load_readme())
214
 
215
  demo.queue().launch()