Spaces:
Sleeping
Sleeping
Commit
·
0cc6ad1
1
Parent(s):
58b20c3
shou;d
Browse files
backend/invoke_worker/chapter_queue.py
CHANGED
@@ -99,6 +99,7 @@ class Job(Thread):
|
|
99 |
|
100 |
job = web_scrap.source_control[source].get_chapter.scrap(comic_id=comic_id,chapter_id=chapter_id,output_dir=input_dir)
|
101 |
if job.get("status") == "success":
|
|
|
102 |
with open(os.path.join(LOG_DIR,"image_translator_output.log"), "w") as file:
|
103 |
result = subprocess.run(
|
104 |
script,
|
@@ -109,6 +110,7 @@ class Job(Thread):
|
|
109 |
stderr=file,
|
110 |
text=True,
|
111 |
)
|
|
|
112 |
with open(os.path.join(LOG_DIR,"image_translator_output.log"), "r") as file:
|
113 |
print(file.read())
|
114 |
if result.returncode != 0: raise Exception("Image Translator Execution error!")
|
|
|
99 |
|
100 |
job = web_scrap.source_control[source].get_chapter.scrap(comic_id=comic_id,chapter_id=chapter_id,output_dir=input_dir)
|
101 |
if job.get("status") == "success":
|
102 |
+
print("IT REACHED HERE???")
|
103 |
with open(os.path.join(LOG_DIR,"image_translator_output.log"), "w") as file:
|
104 |
result = subprocess.run(
|
105 |
script,
|
|
|
110 |
stderr=file,
|
111 |
text=True,
|
112 |
)
|
113 |
+
print("IT DONE AND PRINT OUTPUT???")
|
114 |
with open(os.path.join(LOG_DIR,"image_translator_output.log"), "r") as file:
|
115 |
print(file.read())
|
116 |
if result.returncode != 0: raise Exception("Image Translator Execution error!")
|