kavehtaheri commited on
Commit
14c703e
·
verified ·
1 Parent(s): b44dba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -21,11 +21,13 @@ PERSIAN_FONT_PATH = "Vazir.ttf"
21
  # --- GLOBAL INITIALIZATION ---
22
  # Lazily initialize the OCR reader to avoid loading it on script import
23
  reader = None
24
- translation_cache = {}
 
25
 
26
  def initialize_reader():
27
  """Initializes the EasyOCR reader if it hasn't been already."""
28
- global reader- Output video paths need to persist outside the temporary directory for Gradio display.
 
29
 
30
  if reader is None:
31
  print("Loading EasyOCR model... (This may take a moment on first run)")
 
21
  # --- GLOBAL INITIALIZATION ---
22
  # Lazily initialize the OCR reader to avoid loading it on script import
23
  reader = None
24
+ translation_cache =- The text "Output video paths need to persist outside the temporary directory for Gradio display" seems like a note accidentally included.
25
+ {}
26
 
27
  def initialize_reader():
28
  """Initializes the EasyOCR reader if it hasn't been already."""
29
+ global reader
30
+ # Output video paths need to persist outside the temporary directory for Gradio display.
31
 
32
  if reader is None:
33
  print("Loading EasyOCR model... (This may take a moment on first run)")