TomatoFT commited on
Commit
899f25a
1 Parent(s): 540536e

Fix: Debuging in the app code

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ def translate_text(text, src_lang='en', dest_lang='vi'):
12
  def process_image(image):
13
  # Convert the uploaded image data to a PIL Image
14
  image = Image.open(image).convert('RGB')
15
-
 
16
  # Sample code to perform OCR and draw translated text (replace with your logic)
17
  # Simulated results for demonstration purposes
18
  result = [
 
12
  def process_image(image):
13
  # Convert the uploaded image data to a PIL Image
14
  image = Image.open(image).convert('RGB')
15
+ image.save('temp.jpg')
16
+
17
  # Sample code to perform OCR and draw translated text (replace with your logic)
18
  # Simulated results for demonstration purposes
19
  result = [