Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,20 +62,6 @@ def upload_file(file: UploadFile = File(...)):
|
|
62 |
|
63 |
return HTMLResponse(content=f"<h3>Image successfully squared!</h3><img src='data:image/jpeg;base64,{output.getvalue().hex()}' />", media_type="text/html")
|
64 |
|
65 |
-
@rt("/logs")
|
66 |
-
async def get():
|
67 |
-
logs = search_logs(order_by="-id", limit=50) # Get the latest 50 logs
|
68 |
-
log_entries = [LogEntry(log) for log in logs]
|
69 |
-
return Titled(
|
70 |
-
"Logs",
|
71 |
-
Div(
|
72 |
-
H2("Recent Search Logs"),
|
73 |
-
Div(*log_entries, id="log-entries"),
|
74 |
-
A("Back to Search", href="/", cls="back-link"),
|
75 |
-
cls="container",
|
76 |
-
),
|
77 |
-
)
|
78 |
-
|
79 |
|
80 |
if __name__ == "__main__":
|
81 |
import uvicorn
|
|
|
62 |
|
63 |
return HTMLResponse(content=f"<h3>Image successfully squared!</h3><img src='data:image/jpeg;base64,{output.getvalue().hex()}' />", media_type="text/html")
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
if __name__ == "__main__":
|
67 |
import uvicorn
|