Spaces:
Running
on
Zero
Running
on
Zero
Elea Zhong
commited on
Commit
·
1b9d6c7
1
Parent(s):
cbe2772
update app
Browse files
app.py
CHANGED
|
@@ -15,21 +15,21 @@ import subprocess
|
|
| 15 |
GIT_TOKEN = os.environ.get("GIT_TOKEN")
|
| 16 |
import subprocess
|
| 17 |
|
| 18 |
-
cmd = f"pip install git+https://eleazhong:{GIT_TOKEN}@github.com/wand-ai/wand-ml"
|
| 19 |
-
|
| 20 |
-
proc = subprocess.Popen(
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
)
|
| 27 |
|
| 28 |
-
for line in proc.stdout:
|
| 29 |
-
|
| 30 |
|
| 31 |
-
proc.wait()
|
| 32 |
-
print("Exit code:", proc.returncode)
|
| 33 |
|
| 34 |
from qwenimage.debug import ctimed
|
| 35 |
from qwenimage.models.pipeline_qwenimage_edit_plus import QwenImageEditPlusPipeline
|
|
|
|
| 15 |
GIT_TOKEN = os.environ.get("GIT_TOKEN")
|
| 16 |
import subprocess
|
| 17 |
|
| 18 |
+
# cmd = f"pip install git+https://eleazhong:{GIT_TOKEN}@github.com/wand-ai/wand-ml"
|
| 19 |
+
|
| 20 |
+
# proc = subprocess.Popen(
|
| 21 |
+
# cmd,
|
| 22 |
+
# stdout=subprocess.PIPE,
|
| 23 |
+
# stderr=subprocess.STDOUT,
|
| 24 |
+
# text=True, # or encoding="utf-8" on older Python
|
| 25 |
+
# bufsize=1,
|
| 26 |
+
# )
|
| 27 |
|
| 28 |
+
# for line in proc.stdout:
|
| 29 |
+
# print(line, end="") # already has newline
|
| 30 |
|
| 31 |
+
# proc.wait()
|
| 32 |
+
# print("Exit code:", proc.returncode)
|
| 33 |
|
| 34 |
from qwenimage.debug import ctimed
|
| 35 |
from qwenimage.models.pipeline_qwenimage_edit_plus import QwenImageEditPlusPipeline
|