Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,7 @@ coreocr_model = Qwen2VLForConditionalGeneration.from_pretrained(
|
|
76 |
|
77 |
# Main Inference Function
|
78 |
@spaces.GPU
|
|
|
79 |
def model_inference(message, history, use_coreocr):
|
80 |
text = message["text"].strip()
|
81 |
files = message.get("files", [])
|
|
|
76 |
|
77 |
# Main Inference Function
|
78 |
@spaces.GPU
|
79 |
+
@torch.no_grad()
|
80 |
def model_inference(message, history, use_coreocr):
|
81 |
text = message["text"].strip()
|
82 |
files = message.get("files", [])
|