Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -145,6 +145,7 @@ def make_files(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t_
|
|
145 |
t_link = f"/ai.html"
|
146 |
t_space = f"/back.html"
|
147 |
t_space2 = f"/back_gab.html"
|
|
|
148 |
|
149 |
|
150 |
########## norm
|
@@ -176,7 +177,7 @@ def make_files(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t_
|
|
176 |
######## masto
|
177 |
with open("template/ai.html", "r") as f:
|
178 |
app = f.read()
|
179 |
-
app = app.replace("$space",
|
180 |
app = app.replace("$title", t_title)
|
181 |
app = app.replace("$description", t_description)
|
182 |
app = app.replace("$image", t_image2)
|
@@ -221,7 +222,7 @@ def make_files(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t_
|
|
221 |
app = app.replace("$pad", "56%")
|
222 |
with open("back_masto.html", "w") as f:
|
223 |
f.write(app)
|
224 |
-
files.append("
|
225 |
|
226 |
if t_name == None or t_name =="":
|
227 |
t_name = t_iframe.split("www.", 1)[1].replace(".","_").replace("/", "-")
|
|
|
145 |
t_link = f"/ai.html"
|
146 |
t_space = f"/back.html"
|
147 |
t_space2 = f"/back_gab.html"
|
148 |
+
t_space3 = f"/back_masto.html"
|
149 |
|
150 |
|
151 |
########## norm
|
|
|
177 |
######## masto
|
178 |
with open("template/ai.html", "r") as f:
|
179 |
app = f.read()
|
180 |
+
app = app.replace("$space", t_space3)
|
181 |
app = app.replace("$title", t_title)
|
182 |
app = app.replace("$description", t_description)
|
183 |
app = app.replace("$image", t_image2)
|
|
|
222 |
app = app.replace("$pad", "56%")
|
223 |
with open("back_masto.html", "w") as f:
|
224 |
f.write(app)
|
225 |
+
files.append("back_masto.html")
|
226 |
|
227 |
if t_name == None or t_name =="":
|
228 |
t_name = t_iframe.split("www.", 1)[1].replace(".","_").replace("/", "-")
|