Spaces:
Runtime error
Runtime error
raheemuddin
commited on
Delete temp files
Browse files
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
|