Merge pull request #376 from TsuTikgiau/main

update tmp path in demo
This commit is contained in:
ZhuDeyao 2023-10-16 12:56:52 +03:00 committed by GitHub
commit e51b4f24ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ def computeIoU(bbox1, bbox2):
def save_tmp_img(visual_img): def save_tmp_img(visual_img):
file_name = "".join([str(random.randint(0, 9)) for _ in range(5)]) + ".jpg" file_name = "".join([str(random.randint(0, 9)) for _ in range(5)]) + ".jpg"
file_path = "/tmp/" + file_name file_path = "/tmp/gradio" + file_name
visual_img.save(file_path) visual_img.save(file_path)
return file_path return file_path