-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from NimbleBoxAI/yash/multiapi-bugfix
Make storing I/O in DB optional
- Loading branch information
Showing
6 changed files
with
153 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,4 +150,5 @@ api_docs/_build/ | |
api_docs/_static/ | ||
cf | ||
locust_file.py | ||
demo/ | ||
demo/ | ||
logs.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# this is the landing page UI for the app | ||
|
||
from time import time | ||
from fastapi.responses import HTMLResponse | ||
|
||
|
||
async def landing_page(): | ||
"""Serves the landing page for ChainFury""" | ||
|
||
return HTMLResponse( | ||
status_code=200, | ||
content=""" | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>ChainFury Page</title> | ||
<style> | ||
/* Basic styling for better appearance */ | ||
body { | ||
font-family: Arial, sans-serif; | ||
text-align: center; | ||
margin: 50px; | ||
} | ||
img { | ||
width: 512px; | ||
height: 512px; | ||
} | ||
h1 { | ||
font-size: 32px; | ||
} | ||
h2 { | ||
font-size: 24px; | ||
color: #666; | ||
} | ||
.btn { | ||
display: inline-block; | ||
padding: 10px 20px; | ||
margin: 10px; | ||
border: none; | ||
background-color: #007BFF; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<!-- Image with cloudflare URL --> | ||
<img src="https://d2e931syjhr5o9.cloudfront.net/nbox/cf_banner.jpg" alt="ChainFury logo"> | ||
<!-- Subtitle below image --> | ||
<h2>ChainFury is a production grade chaining engine used by TuneChat (formerly ChatNBX)</h2> | ||
<!-- Three buttons --> | ||
<a href="https://github.com/NimbleBoxAI/ChainFury" class="btn" target="_blank">GitHub</a> | ||
<a href="https://nimbleboxai.github.io/ChainFury/" class="btn" target="_blank">Documentation</a> | ||
<a href="https://chat.nbox.ai/" class="btn" target="_blank">ChatNBX</a> | ||
</body> | ||
</html> | ||
""", | ||
) |