Kaushik066 commited on
Commit
5af8e7c
·
1 Parent(s): d65d26d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -330,16 +330,18 @@ def translate_sign_language(gesture):
330
 
331
  return gesture_translation , prod_video_path # frame_generator
332
 
333
- # Read the content of the README.md file
334
- with open("about.md", "r") as file:
335
- about_lines = file.read()
 
 
336
 
337
  with gr.Blocks(css=custom_css) as demo:
338
  gr.Markdown("# Indian Sign Language Translation App")
339
 
340
  # About the App
341
  with gr.Tab("About the App"):
342
- gr.Markdown(about_lines)
343
 
344
  # Gesture recognition Tab
345
  with gr.Tab("Gesture recognition"):
 
330
 
331
  return gesture_translation , prod_video_path # frame_generator
332
 
333
+ # Function to read the about.md file
334
+ def load_about_md():
335
+ with open("about.md", "r") as file:
336
+ about_content = file.read()
337
+ return about_content
338
 
339
  with gr.Blocks(css=custom_css) as demo:
340
  gr.Markdown("# Indian Sign Language Translation App")
341
 
342
  # About the App
343
  with gr.Tab("About the App"):
344
+ gr.Markdown(load_about_md())
345
 
346
  # Gesture recognition Tab
347
  with gr.Tab("Gesture recognition"):