matt HOFFNER
commited on
Commit
·
82c09a3
1
Parent(s):
3650102
attempt iframe
Browse files
main.py
CHANGED
|
@@ -22,9 +22,21 @@ app.add_middleware(
|
|
| 22 |
|
| 23 |
@app.get("/")
|
| 24 |
async def index():
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
return HTMLResponse(content=html_content, status_code=200)
|
| 29 |
|
| 30 |
class ChatCompletionRequest(BaseModel):
|
|
|
|
| 22 |
|
| 23 |
@app.get("/")
|
| 24 |
async def index():
|
| 25 |
+
html_content = """
|
| 26 |
+
<html>
|
| 27 |
+
<head>
|
| 28 |
+
</head>
|
| 29 |
+
<body>
|
| 30 |
+
<h1><a href="https://matthoffner-wizardcoder-ggml.hf.space/docs">FastAPI Docs</a></h1>
|
| 31 |
+
<iframe
|
| 32 |
+
src="https://matthoffner-monacopilot.hf.space"
|
| 33 |
+
frameborder="0"
|
| 34 |
+
width="850"
|
| 35 |
+
height="450"
|
| 36 |
+
></iframe>
|
| 37 |
+
</body>
|
| 38 |
+
</html>
|
| 39 |
+
"""
|
| 40 |
return HTMLResponse(content=html_content, status_code=200)
|
| 41 |
|
| 42 |
class ChatCompletionRequest(BaseModel):
|