Spaces:
Running
on
Zero
Running
on
Zero
Turning off logging to make it work on zero-gpu
Browse files
app.py
CHANGED
|
@@ -65,12 +65,12 @@ def handle_text_prompt(input_prompt, use_bbox = True, bbox_x=1.0, bbox_y=1.0, bb
|
|
| 65 |
}
|
| 66 |
|
| 67 |
# Save to persistent storage
|
| 68 |
-
data_dir = "/data"
|
| 69 |
-
os.makedirs(data_dir, exist_ok=True)
|
| 70 |
|
| 71 |
-
prompt_file = os.path.join(data_dir, "prompt_log.jsonl")
|
| 72 |
-
with open(prompt_file, "a") as f:
|
| 73 |
-
|
| 74 |
|
| 75 |
print(f"prompt: {input_prompt}, use_bbox: {use_bbox}, bbox_x: {bbox_x}, bbox_y: {bbox_y}, bbox_z: {bbox_z}, hi_res: {hi_res}")
|
| 76 |
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
# Save to persistent storage
|
| 68 |
+
#data_dir = "/data"
|
| 69 |
+
#os.makedirs(data_dir, exist_ok=True)
|
| 70 |
|
| 71 |
+
#prompt_file = os.path.join(data_dir, "prompt_log.jsonl")
|
| 72 |
+
#with open(prompt_file, "a") as f:
|
| 73 |
+
# f.write(json.dumps(debug_info) + "\n")
|
| 74 |
|
| 75 |
print(f"prompt: {input_prompt}, use_bbox: {use_bbox}, bbox_x: {bbox_x}, bbox_y: {bbox_y}, bbox_z: {bbox_z}, hi_res: {hi_res}")
|
| 76 |
|