raheemuddin commited on
Commit
82a1852
1 Parent(s): 0411334

Delete temp files

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -43,6 +43,7 @@ def translate_and_predict(text):
43
  converted_image_path = f"./tasomi-{uuid.uuid4().hex}.jpg"
44
  webp_image.save(converted_image_path, "JPEG")
45
  s3_path = upload_file(converted_image_path)
 
46
  return s3_path,s3_path
47
 
48
  # Define the Gradio interface
 
43
  converted_image_path = f"./tasomi-{uuid.uuid4().hex}.jpg"
44
  webp_image.save(converted_image_path, "JPEG")
45
  s3_path = upload_file(converted_image_path)
46
+ os.remove(converted_image_path)
47
  return s3_path,s3_path
48
 
49
  # Define the Gradio interface