Spaces:
Configuration error
Configuration error
Kangarroar
commited on
Commit
•
ec60f56
1
Parent(s):
fa91357
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ if ckpt is not None:
|
|
69 |
#TEMP FUNCTION
|
70 |
with tempfile.NamedTemporaryFile(mode="wb", suffix='.ckpt', delete=False) as temp:
|
71 |
# Get the file contents as bytes
|
72 |
-
bytes_data =
|
73 |
# Write the bytes to the temporary file
|
74 |
temp.write(bytes_data)
|
75 |
config_temp_file = temp.name
|
|
|
69 |
#TEMP FUNCTION
|
70 |
with tempfile.NamedTemporaryFile(mode="wb", suffix='.ckpt', delete=False) as temp:
|
71 |
# Get the file contents as bytes
|
72 |
+
bytes_data = ckpt.getvalue()
|
73 |
# Write the bytes to the temporary file
|
74 |
temp.write(bytes_data)
|
75 |
config_temp_file = temp.name
|