Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ app=FastAPI();
|
|
| 14 |
templates = Jinja2Templates(directory="templates")
|
| 15 |
@app.get("/",response_class=HTMLResponse)
|
| 16 |
def test(request: Request,q:str="ls",body:bool=True):
|
| 17 |
-
with open("v.tex") as k:
|
| 18 |
k.write(format(q))
|
| 19 |
|
| 20 |
return templates.TemplateResponse("latex.html",
|
|
|
|
| 14 |
templates = Jinja2Templates(directory="templates")
|
| 15 |
@app.get("/",response_class=HTMLResponse)
|
| 16 |
def test(request: Request,q:str="ls",body:bool=True):
|
| 17 |
+
with open("v.tex","w") as k:
|
| 18 |
k.write(format(q))
|
| 19 |
|
| 20 |
return templates.TemplateResponse("latex.html",
|