taarhissian commited on
Commit
e5e2128
·
verified ·
1 Parent(s): 9a7e4b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def extract_room_data(results, room_patterns, dimension_pattern):
27
  # Function to process the uploaded image
28
  def process_image(image):
29
  # Convert the Gradio image to PIL Image
30
- image = Image.fromarray(image)
31
 
32
  # Perform OCR
33
  results = reader.readtext(np.array(image), detail=0)
 
27
  # Function to process the uploaded image
28
  def process_image(image):
29
  # Convert the Gradio image to PIL Image
30
+ image = Image.fromarray(image)
31
 
32
  # Perform OCR
33
  results = reader.readtext(np.array(image), detail=0)