Omnibus commited on
Commit
58ded98
1 Parent(s): 5ec32be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -153,12 +153,13 @@ def create_valid_filename(invalid_filename: str) -> str:
153
 
154
  def load_html(inp):
155
  ht=""
156
- for ea in inp:
157
- outp,prom=ea
158
- ht+=f"""<div>
159
- <pre>{outp}</pre>
160
- <pre>{prom}</pre>
161
- </div>"""
 
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}")