Update app.py
Browse files
app.py
CHANGED
|
@@ -6,11 +6,7 @@ app=FastAPI();
|
|
| 6 |
templates = Jinja2Templates(directory="templates")
|
| 7 |
@app.get("/")
|
| 8 |
def test(q:str="ls"):
|
| 9 |
-
|
| 10 |
{
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
"my_variable": my_variable
|
| 14 |
-
}
|
| 15 |
-
)
|
| 16 |
-
return Jinja2Templates(check_output(q.split(" "))
|
|
|
|
| 6 |
templates = Jinja2Templates(directory="templates")
|
| 7 |
@app.get("/")
|
| 8 |
def test(q:str="ls"):
|
| 9 |
+
return templates.TemplateResponse("latex.html",
|
| 10 |
{
|
| 11 |
+
"result":check_output(q.split(" "))
|
| 12 |
+
})
|
|
|
|
|
|
|
|
|
|
|
|