Spaces:
Build error
Build error
Commit
·
bfb605d
1
Parent(s):
998b3f6
Update app.py
Browse files
app.py
CHANGED
@@ -434,7 +434,7 @@ def my_inference_function(image,text):
|
|
434 |
#encoded_data = file.read()
|
435 |
#file.close()
|
436 |
|
437 |
-
temp = tempfile.
|
438 |
temp.write(image)
|
439 |
print("Name of the file is:", temp.name)
|
440 |
temp.close()
|
|
|
434 |
#encoded_data = file.read()
|
435 |
#file.close()
|
436 |
|
437 |
+
temp = tempfile.TemporaryFile()
|
438 |
temp.write(image)
|
439 |
print("Name of the file is:", temp.name)
|
440 |
temp.close()
|