gauri-sharan commited on
Commit
ee73de1
·
verified ·
1 Parent(s): cacc570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-7B-Instruct", trust_rem
25
  # Global variable to store extracted text
26
  extracted_text = ""
27
 
28
- @spaces.GPU # Decorate the function for GPU management
29
  def ocr_and_extract(image):
30
  global extracted_text
31
  try:
 
25
  # Global variable to store extracted text
26
  extracted_text = ""
27
 
28
+ @spaces.GPU(duration=120) # Increased GPU duration to 120 seconds
29
  def ocr_and_extract(image):
30
  global extracted_text
31
  try: