shayekh commited on
Commit
f6474a9
·
verified ·
1 Parent(s): 1ec7696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -24,10 +24,7 @@ import torch
24
  from supertonic import TTS
25
  from transformers import AutoProcessor, AutoModelForImageTextToText
26
 
27
- model = None
28
- processor = None
29
- tts = None
30
- voice_style = None
31
 
32
  def extract_pdf_content(pdf_path, max_pages=2):
33
  """Extract text and images from up to max_pages of a PDF."""
@@ -502,6 +499,11 @@ def create_demo():
502
 
503
 
504
  if __name__ == "__main__":
 
 
 
 
 
505
  global model, processor, tts, voice_style
506
 
507
 
 
24
  from supertonic import TTS
25
  from transformers import AutoProcessor, AutoModelForImageTextToText
26
 
27
+
 
 
 
28
 
29
  def extract_pdf_content(pdf_path, max_pages=2):
30
  """Extract text and images from up to max_pages of a PDF."""
 
499
 
500
 
501
  if __name__ == "__main__":
502
+ model = None
503
+ processor = None
504
+ tts = None
505
+ voice_style = None
506
+
507
  global model, processor, tts, voice_style
508
 
509