Skip to content

Commit

Permalink
update: overview
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Sep 7, 2023
1 parent ecad700 commit f7db902
Show file tree
Hide file tree
Showing 25 changed files with 5,519 additions and 4,537 deletions.
4 changes: 2 additions & 2 deletions Refinaid/Utils/Update.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def update_preprocessing_visualization(dataset_dropdown, x_axis_dropdown, y_axis
x=x_axis_dropdown,
y=y_axis_dropdown,
title="Scatter Plot in Data Visualization",
height=400,
width=400,
# height=400,
# width=400,
caption='Observe the relationship between parameters',
)

Expand Down
4 changes: 2 additions & 2 deletions Refinaid/gui/Dashborad/Preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def get_preprocessing_visulize_info(
x="PassengerId",
y="Pclass",
title='Scatter Plot in Data Visualization',
height=400,
width=400,
# height=400,
# width=400,
caption='Observe the relationship between parameters',
)

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# GitHub: github.com/1chooo
# Copyright (C) 2023 Hugo ChunHo Lin All rights reserved.

uvicorn main:app --host 127.0.0.1 --port 5002
uvicorn main:app --host 127.0.0.1 --port 5002 --reload
29 changes: 21 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,43 @@
PLAYGROUND_PATH = "/gradio"

app = FastAPI()

os.makedirs("static", exist_ok=True)
app.mount("/static", StaticFiles(directory="static"), name="static")

templates = Jinja2Templates(directory="templates")

@app.get("/temp_home", response_class=HTMLResponse)
async def home(request: Request):
return templates.TemplateResponse(
"home.html", {"request": request}
)

demo = build_ui()
app = gr.mount_gradio_app(
app, demo, path=PLAYGROUND_PATH
)

@app.get("/", response_class=HTMLResponse)
async def home(request: Request):
async def page_overview(request: Request):
return templates.TemplateResponse(
"index.html", {"request": request}
)

@app.get("/project_docs", response_class=HTMLResponse)
async def custom_docs(request: Request):
async def page_project_docs(request: Request):
return templates.TemplateResponse(
"docs.html", {"request": request}
)

@app.get("/login", response_class=HTMLResponse)
async def page_login(request: Request, ):
return templates.TemplateResponse(
f"login.html", {"request": request}
)

@app.get("/setting", response_class=HTMLResponse)
async def page_setting(request: Request, ):
return templates.TemplateResponse(
f"setting.html", {"request": request}
)

@app.get("/signup", response_class=HTMLResponse)
async def page_signup(request: Request, ):
return templates.TemplateResponse(
f"signup.html", {"request": request}
)
File renamed without changes.
File renamed without changes
File renamed without changes
Binary file added static/imgs/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 0 additions & 2 deletions templates/.gitignore

This file was deleted.

92 changes: 48 additions & 44 deletions templates/404.html
Original file line number Diff line number Diff line change
@@ -1,69 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en">

<head>
<title>Portal - Bootstrap 5 Admin Dashboard Template For Developers</title>

<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="description" content="Portal - Bootstrap 5 Admin Dashboard Template For Developers">
<meta name="author" content="Xiaoying Riley at 3rd Wave Media">
<link rel="shortcut icon" href="favicon.ico">
<meta name="author" content="Xiaoying Riley at 3rd Wave Media">
<link rel="shortcut icon" href="favicon.ico">

<!-- FontAwesome JS-->
<script defer src="/static/plugins/fontawesome/js/all.min.js"></script>
<!-- App CSS -->

<!-- App CSS -->
<link id="theme-style" rel="stylesheet" href="/static/css/portal.css">

</head>
</head>

<body class="app app-404-page">

<body class="app app-404-page">

<div class="container mb-5">
<div class="row">
<div class="col-12 col-md-11 col-lg-7 col-xl-6 mx-auto">
<div class="app-branding text-center mb-5">
<a class="app-logo" href="index.html"><img class="logo-icon me-2" src="/static/images/app-logo.svg" alt="logo"><span class="logo-text">PORTAL</span></a>

</div><!--//app-branding-->
<div class="app-card p-5 text-center shadow-sm">
<h1 class="page-title mb-4">404<br><span class="font-weight-light">Page Not Found</span></h1>
<div class="mb-4">
Sorry, we can't find the page you're looking for.
</div>
<a class="btn app-btn-primary" href="index.html">Go to home page</a>
</div>
</div><!--//col-->
</div><!--//row-->
<div class="row">
<div class="col-12 col-md-11 col-lg-7 col-xl-6 mx-auto">
<div class="app-branding text-center mb-5">
<a class="app-logo" href="index.html"><img class="logo-icon me-2" src="/static/images/app-logo.svg"
alt="logo"><span class="logo-text">PORTAL</span></a>

</div><!--//app-branding-->
<div class="app-card p-5 text-center shadow-sm">
<h1 class="page-title mb-4">404<br><span class="font-weight-light">Page Not Found</span></h1>
<div class="mb-4">
Sorry, we can't find the page you're looking for.
</div>
<a class="btn app-btn-primary" href="index.html">Go to home page</a>
</div>
</div><!--//col-->
</div><!--//row-->
</div><!--//container-->


<footer class="app-footer">
<div class="container text-center py-3">
<!--/* This template is free as long as you keep the footer attribution link. If you'd like to use the template without the attribution link, you can buy the commercial license via our website: themes.3rdwavemedia.com Thank you for your support. :) */-->
<small class="copyright">Designed with <span class="sr-only">love</span><i class="fas fa-heart" style="color: #fb866a;"></i> by <a class="app-link" href="http://themes.3rdwavemedia.com" target="_blank">Xiaoying Riley</a> for developers</small>

</div>
<div class="container text-center py-3">
<!--/* This template is free as long as you keep the footer attribution link. If you'd like to use the template without the attribution link, you can buy the commercial license via our website: themes.3rdwavemedia.com Thank you for your support. :) */-->
<small class="copyright">Designed with <span class="sr-only">love</span><i class="fas fa-heart"
style="color: #fb866a;"></i> by <a class="app-link" href="http://themes.3rdwavemedia.com"
target="_blank">Xiaoying Riley</a> for developers</small>

</div>
</footer><!--//app-footer-->

<!-- Javascript -->
<!-- Javascript -->
<script src="/static/plugins/popper.min.js"></script>
<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>


<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>







<!-- Charts JS -->
<script src="/static/plugins/chart.js/chart.min.js"></script>
<script src="/static/js/charts-custom.js"></script>
<script src="/static/plugins/chart.js/chart.min.js"></script>
<script src="/static/js/charts-custom.js"></script>

<!-- Page Specific JS -->
<script src="/static/js/app.js"></script>
<script src="/static/js/app.js"></script>

</body>
</html>

</html>
Loading

0 comments on commit f7db902

Please sign in to comment.