Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,11 @@ pipe.to("cpu")
|
|
26 |
|
27 |
def chdr(apol,prompt,modil,stips,fnamo,gaul):
|
28 |
try:
|
29 |
-
type="
|
30 |
los=""
|
31 |
tre='./tmpo/'+fnamo+'.json'
|
32 |
tra='./tmpo/'+fnamo+'_0.png'
|
|
|
33 |
flng=["yssup", "sllab", "stsaerb", "sinep", "selppin", "ssa", "tnuc", "mub", "kcoc", "kcid", "anigav", "dekan", "edun", "slatineg", "xes", "nrop", "stit", "ttub", "bojwolb", "noitartenep", "kcuf", "kcus", "kcil", "elttil", "gnuoy", "thgit", "lrig", "etitep", "dlihc", "yxes"]
|
34 |
flng=[itm[::-1] for itm in flng]
|
35 |
ptn = r"\b" + r"\b|\b".join(flng) + r"\b"
|
@@ -51,6 +52,7 @@ def chdr(apol,prompt,modil,stips,fnamo,gaul):
|
|
51 |
os.remove(jgn)
|
52 |
del tre
|
53 |
del tra
|
|
|
54 |
except:
|
55 |
print("cant")
|
56 |
except:
|
|
|
26 |
|
27 |
def chdr(apol,prompt,modil,stips,fnamo,gaul):
|
28 |
try:
|
29 |
+
type="SD"
|
30 |
los=""
|
31 |
tre='./tmpo/'+fnamo+'.json'
|
32 |
tra='./tmpo/'+fnamo+'_0.png'
|
33 |
+
trm='./tmpo/'+fnamo+'_1.png'
|
34 |
flng=["yssup", "sllab", "stsaerb", "sinep", "selppin", "ssa", "tnuc", "mub", "kcoc", "kcid", "anigav", "dekan", "edun", "slatineg", "xes", "nrop", "stit", "ttub", "bojwolb", "noitartenep", "kcuf", "kcus", "kcil", "elttil", "gnuoy", "thgit", "lrig", "etitep", "dlihc", "yxes"]
|
35 |
flng=[itm[::-1] for itm in flng]
|
36 |
ptn = r"\b" + r"\b|\b".join(flng) + r"\b"
|
|
|
52 |
os.remove(jgn)
|
53 |
del tre
|
54 |
del tra
|
55 |
+
del trm
|
56 |
except:
|
57 |
print("cant")
|
58 |
except:
|