ammariii08 commited on
Commit
8975627
·
verified ·
1 Parent(s): 4c24c98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def load_image(image_file):
130
  def vision_ai_api(image, doc_type):
131
  """Run the model using a dynamic prompt based on detected doc type."""
132
  pixel_values = load_image(image).to(torch.float32).to("cpu")
133
- generation_config = dict(max_new_tokens=512, do_sample=True)
134
 
135
  question = front_prompt if doc_type == "front" else back_prompt if doc_type == "back" else "Please provide document details."
136
 
 
130
  def vision_ai_api(image, doc_type):
131
  """Run the model using a dynamic prompt based on detected doc type."""
132
  pixel_values = load_image(image).to(torch.float32).to("cpu")
133
+ generation_config = dict(max_new_tokens=256, do_sample=True)
134
 
135
  question = front_prompt if doc_type == "front" else back_prompt if doc_type == "back" else "Please provide document details."
136