YoBatM commited on
Commit
76443b7
·
verified ·
1 Parent(s): 62e091c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def img(request: Request):
32
  @app.get("/",response_class=HTMLResponse)
33
  def test(request: Request,q:str="ls",body:bool=True,x:int=1024,y:int=1024,font:float=50):
34
  with open("./v.tex","w") as k:
35
- k.write(format(q) if body else q)
36
  r=run("pdflatex v.tex".split(" "),capture_output=True)
37
  if r.stderr:
38
  return r.stderr
 
32
  @app.get("/",response_class=HTMLResponse)
33
  def test(request: Request,q:str="ls",body:bool=True,x:int=1024,y:int=1024,font:float=50):
34
  with open("./v.tex","w") as k:
35
+ k.write(format(q,font) if body else q)
36
  r=run("pdflatex v.tex".split(" "),capture_output=True)
37
  if r.stderr:
38
  return r.stderr