xelpmocAI commited on
Commit
53efe78
·
verified ·
1 Parent(s): 157798c
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -90,7 +90,6 @@ def demo(image_path, prompt):
90
  logging.info("8", output_text)
91
 
92
  # Handle output text to convert it into JSON
93
- json = str()
94
  try:
95
  almost_json = output_text[0].split('\n')[-1].split('\n')[0]
96
  json = literal_eval(almost_json)
@@ -104,7 +103,7 @@ def process_document(image):
104
  image = Image.fromarray(image) # Convert NumPy array to PIL Image
105
  image.save(tmp_file.name) # Save the image to the temporary file
106
  image_path = tmp_file.name # Get the path of the saved file
107
- logging.info(image_path)
108
  # Process the image with your model
109
  one = demo(image_path, other_benifits)
110
  logging.info("kjf")
 
90
  logging.info("8", output_text)
91
 
92
  # Handle output text to convert it into JSON
 
93
  try:
94
  almost_json = output_text[0].split('\n')[-1].split('\n')[0]
95
  json = literal_eval(almost_json)
 
103
  image = Image.fromarray(image) # Convert NumPy array to PIL Image
104
  image.save(tmp_file.name) # Save the image to the temporary file
105
  image_path = tmp_file.name # Get the path of the saved file
106
+ logging.info("the path made for image", image_path)
107
  # Process the image with your model
108
  one = demo(image_path, other_benifits)
109
  logging.info("kjf")