Merge pull request #4 from tools4ds/retargeting
Browse filesAdd logos, deployment and unauthorized page change
Files changed (7)
1 unmodified line23456781 unmodified lineon:push:branches: [main, retargeting]# run this workflow manualy from the Actions tabworkflow_dispatch:1 unmodified line23456781 unmodified lineon:push:branches: [main]# run this workflow manualy from the Actions tabworkflow_dispatch:
10 unmodified lines111213141510 unmodified lines**/.files/*.env*.pycvenv/apps10 unmodified lines1112131410 unmodified lines**/.files/*.env*.pycvenv/
389 unmodified lines390391392393394395396397389 unmodified linesif __name__ == "__main__":parser = argparse.ArgumentParser(description="Run the AI Tutor application")parser.add_argument("--host", default="0.0.0.0", help="Host to run the server on")parser.add_argument("--port", type=int, default=7860,help="Port to run the server on")args = parser.parse_args()uvicorn.run(app, host=args.host, port=args.port)389 unmodified lines390391392393394395396397398389 unmodified linesif __name__ == "__main__":parser = argparse.ArgumentParser(description="Run the AI Tutor application")parser.add_argument("--host", default="0.0.0.0", help="Host to run the server on")parser.add_argument("--port", type=int, default=7860, help="Port to run the server on")args = parser.parse_args()uvicorn.run(app, host=args.host, port=args.port)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Access Restricted</title><style>@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');body, html {margin: 0;padding: 0;font-family: 'Inter', sans-serif;background-color: #f7f7f7; /* Light gray background */background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Subtle geometric pattern */background-repeat: repeat;display: flex;align-items: center;justify-content: center;height: 100vh;color: #333;}.container {background: rgba(255, 255, 255, 0.9);border: 1px solid #ddd;border-radius: 8px;width: 100%;max-width: 400px;padding: 50px;box-sizing: border-box;text-align: center;box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(10px);}.avatar {width: 90px;height: 90px;border-radius: 50%;margin-bottom: 25px;border: 2px solid #ddd;}.container h1 {margin-bottom: 20px;font-size: 26px;font-weight: 600;color: #1a1a1a;}.container p {font-size: 18px;color: #4a4a4a;margin-bottom: 35px;line-height: 1.5;}.button {padding: 14px 0;margin: 12px 0;font-size: 16px;border-radius: 6px;cursor: pointer;width: 100%;border: 1px solid #ccc;background-color: #007BFF;color: #fff;transition: background-color 0.3s ease, border-color 0.3s ease;}.button:hover {background-color: #0056b3;border-color: #0056b3;}</style></head><body><div class="container"><img src="/public/assets/images/avatars/ai-tutor.png" alt="AI Tutor Avatar" class="avatar"><h1>Access Restricted</h1><p>We're currently testing things out for the <strong>DS598</strong> course.Access is restricted to students of the course. If you're enrolled in <strong>DS598</strong> and seeing this message,please reach out to us, and we'll help you get access.<br><br><em>P.S. Don't forget to use your BU email when logging in!</em></p><form action="/" method="get"><button type="submit" class="button">Return to Home</button></form></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Access Restricted</title><style>@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");body,html {margin: 0;padding: 0;font-family: "Inter", sans-serif;background-color: #f7f7f7; /* Light gray background */background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); /* Subtle geometric pattern */background-repeat: repeat;display: flex;align-items: center;justify-content: center;height: 100vh;color: #333;}.container {background: rgba(255, 255, 255, 0.9);border: 1px solid #ddd;border-radius: 8px;width: 100%;max-width: 400px;padding: 50px;box-sizing: border-box;text-align: center;box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(10px);}.avatar {width: 90px;height: 90px;border-radius: 50%;margin-bottom: 25px;border: 2px solid #ddd;}.container h1 {margin-bottom: 20px;font-size: 26px;font-weight: 600;color: #1a1a1a;}.container p {font-size: 18px;color: #4a4a4a;margin-bottom: 35px;line-height: 1.5;}.button {padding: 14px 0;margin: 12px 0;font-size: 16px;border-radius: 6px;cursor: pointer;width: 100%;border: 1px solid #ccc;background-color: #007bff;color: #fff;transition: background-color 0.3s ease, border-color 0.3s ease;}.button:hover {background-color: #0056b3;border-color: #0056b3;}</style></head><body><div class="container"><imgsrc="/public/assets/images/avatars/ai-tutor.png"alt="AI Tutor Avatar"class="avatar"/><h1>Access Restricted</h1><p>We're currently testing things out for the<strong>DS701</strong> course. Access is restricted to students of thecourse. If you're enrolled in <strong>DS701</strong> and seeing thismessage, please reach out to us, and we'll help you get access.<br /><br /><em>P.S. Don't forget to use your BU email when logging in!</em></p><form action="/" method="get"><button type="submit" class="button">Return to Home</button></form></div></body></html>
.github/workflows/deploy_to_hf.yml+1-1
.gitignore+1-2
apps/ai_tutor/app.py+3-2
apps/ai_tutor/public/assets/images/avatars/logo.pngAdded
apps/ai_tutor/public/logo_dark.png


apps/ai_tutor/public/logo_light.png


apps/ai_tutor/templates/unauthorized.html+85-79