1
0
forked from cgvr/DeltaVR

added more time logging to python script + switched to using CGVR lab WiFi

This commit is contained in:
2026-01-11 12:34:08 +02:00
parent 997bb457ba
commit a23f40787e
4 changed files with 11 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ def generate_no_preview(image_base64: str):
}
# Start generation
print("Starting generation...")
print("Generating model...")
response = requests.post(f"{API_URL}/generate_no_preview", data=params)
response.raise_for_status()
@@ -50,8 +50,11 @@ def generate_no_preview(image_base64: str):
# Download the model
print("Downloading model...")
time_start = time.time()
response = requests.get(f"{API_URL}/download/model")
response.raise_for_status()
time_download = time.time() - time_start
print(f"Model downloaded in {round(time_download, 1)} seconds")
return response.content