Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,6 +78,7 @@ rolmocr_model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
|
| 78 |
|
| 79 |
# Main Inference Function
|
| 80 |
@spaces.GPU
|
|
|
|
| 81 |
def model_inference(input_dict, history, use_rolmocr=False):
|
| 82 |
text = input_dict["text"].strip()
|
| 83 |
files = input_dict.get("files", [])
|
|
|
|
| 78 |
|
| 79 |
# Main Inference Function
|
| 80 |
@spaces.GPU
|
| 81 |
+
@torch.no_grad()
|
| 82 |
def model_inference(input_dict, history, use_rolmocr=False):
|
| 83 |
text = input_dict["text"].strip()
|
| 84 |
files = input_dict.get("files", [])
|