Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -160,6 +160,8 @@ def load_image(source, assetCode, contentType=None, ffmpeg_path='ffmpeg', frame_
|
|
160 |
|
161 |
@app.post("/save")
|
162 |
async def save(image_data: RequestModel):
|
|
|
|
|
163 |
os.makedirs(BASE_DIR, exist_ok=True)
|
164 |
filename = os.path.join(BASE_DIR, f"{image_data.originId}_{image_data.assetCode}_{uuid.uuid4().hex[:8]}.json")
|
165 |
|
|
|
160 |
|
161 |
@app.post("/save")
|
162 |
async def save(image_data: RequestModel):
|
163 |
+
data_to_save = image_data.dict()
|
164 |
+
print("Recebido:", data_to_save)
|
165 |
os.makedirs(BASE_DIR, exist_ok=True)
|
166 |
filename = os.path.join(BASE_DIR, f"{image_data.originId}_{image_data.assetCode}_{uuid.uuid4().hex[:8]}.json")
|
167 |
|