Update app.py
Browse files
app.py
CHANGED
@@ -153,12 +153,13 @@ def create_valid_filename(invalid_filename: str) -> str:
|
|
153 |
|
154 |
def load_html(inp):
|
155 |
ht=""
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
|
|
162 |
with open('index.html','r') as h:
|
163 |
html=h.read()
|
164 |
html = html.replace("$body",f"{ht}")
|
|
|
153 |
|
154 |
def load_html(inp):
|
155 |
ht=""
|
156 |
+
if inp:
|
157 |
+
for ea in inp:
|
158 |
+
outp,prom=ea
|
159 |
+
ht+=f"""<div>
|
160 |
+
<pre>{outp}</pre>
|
161 |
+
<pre>{prom}</pre>
|
162 |
+
</div>"""
|
163 |
with open('index.html','r') as h:
|
164 |
html=h.read()
|
165 |
html = html.replace("$body",f"{ht}")
|