Update app.py
Browse files
app.py
CHANGED
@@ -4,4 +4,8 @@ from subprocess import check_output
|
|
4 |
app=FastAPI();
|
5 |
@app.get("/")
|
6 |
def test(q:str="ls"):
|
7 |
-
return check_output(q.split(" "))
|
|
|
|
|
|
|
|
|
|
4 |
app=FastAPI();
|
5 |
@app.get("/")
|
6 |
def test(q:str="ls"):
|
7 |
+
return f"""<html>{check_output(q.split(" "))}
|
8 |
+
<form method="GET">
|
9 |
+
<input name="q">
|
10 |
+
</form>
|
11 |
+
</html>"""
|