Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 #
|
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:
|