Update app2.py
Browse files
app2.py
CHANGED
@@ -22,27 +22,6 @@ subprocess.run(["python","-c",command])
|
|
22 |
subprocess.run(["mv", "./MuseV/scripts/inference/text2video.py", "./MuseV/text2video.py"])
|
23 |
subprocess.run(["mv", "./MuseV/scripts/inference/video2video.py", "./MuseV/video2video.py"])
|
24 |
|
25 |
-
with open ("./MuseV/configs/model/motion_model.py","r+") as scrip:
|
26 |
-
s = scrip.read()
|
27 |
-
s = s.replace('/content/MuseV/checkpoints', "/home/user/app/MuseV/checkpoints")
|
28 |
-
scrip.write(s)
|
29 |
-
scrip.truncate()
|
30 |
-
scrip.seek(0)
|
31 |
-
|
32 |
-
with open ("./MuseV/configs/model/ip_adapter.py","r+") as scrip:
|
33 |
-
s = scrip.read()
|
34 |
-
s = s.replace('/content/MuseV/checkpoints', "/home/user/app/MuseV/checkpoints")
|
35 |
-
scrip.write(s)
|
36 |
-
scrip.truncate()
|
37 |
-
scrip.seek(0)
|
38 |
-
|
39 |
-
with open ("./MuseV/configs/model/T2I_all_model.py","r+") as scrip:
|
40 |
-
s = scrip.read()
|
41 |
-
s = s.replace('/content/MuseV/checkpoints', "/home/user/app/MuseV/checkpoints")
|
42 |
-
scrip.write(s)
|
43 |
-
scrip.truncate()
|
44 |
-
scrip.seek(0)
|
45 |
-
|
46 |
from PIL import Image
|
47 |
|
48 |
def add_new_image(prompt,image):
|
|
|
22 |
subprocess.run(["mv", "./MuseV/scripts/inference/text2video.py", "./MuseV/text2video.py"])
|
23 |
subprocess.run(["mv", "./MuseV/scripts/inference/video2video.py", "./MuseV/video2video.py"])
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
from PIL import Image
|
26 |
|
27 |
def add_new_image(prompt,image):
|