matt HOFFNER commited on
Commit
82c09a3
1 Parent(s): 3650102

attempt iframe

Browse files
Files changed (1) hide show
  1. main.py +15 -3
main.py CHANGED
@@ -22,9 +22,21 @@ app.add_middleware(
22
 
23
  @app.get("/")
24
  async def index():
25
- with open("README.md", "r", encoding="utf-8") as readme_file:
26
- md_template_string = readme_file.read()
27
- html_content = markdown.markdown(md_template_string)
 
 
 
 
 
 
 
 
 
 
 
 
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):