Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
|
@@ -60,8 +60,8 @@ def update_queue_status(message):
|
|
| 60 |
|
| 61 |
def process_task(task):
|
| 62 |
try:
|
| 63 |
-
update_queue_status(str("sid" in session))
|
| 64 |
-
client_id = session.get("sid")
|
| 65 |
task.is_processing = True
|
| 66 |
# ファイルデータをPIL Imageに変換
|
| 67 |
image = Image.open(io.BytesIO(task.file_data))
|
|
@@ -82,7 +82,7 @@ def process_task(task):
|
|
| 82 |
'task_id': task.task_id,
|
| 83 |
'sotai_image': sotai_image,
|
| 84 |
'sketch_image': sketch_image
|
| 85 |
-
}
|
| 86 |
except Exception as e:
|
| 87 |
print(f"Task error: {str(e)}")
|
| 88 |
if not task.cancel_flag:
|
|
|
|
| 60 |
|
| 61 |
def process_task(task):
|
| 62 |
try:
|
| 63 |
+
# update_queue_status(str("sid" in session))
|
| 64 |
+
# client_id = session.get("sid")
|
| 65 |
task.is_processing = True
|
| 66 |
# ファイルデータをPIL Imageに変換
|
| 67 |
image = Image.open(io.BytesIO(task.file_data))
|
|
|
|
| 82 |
'task_id': task.task_id,
|
| 83 |
'sotai_image': sotai_image,
|
| 84 |
'sketch_image': sketch_image
|
| 85 |
+
})
|
| 86 |
except Exception as e:
|
| 87 |
print(f"Task error: {str(e)}")
|
| 88 |
if not task.cancel_flag:
|