martinezjandrew commited on
Commit
72b272f
·
verified ·
1 Parent(s): 6165600

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -4
app.py CHANGED
@@ -24,13 +24,51 @@ async def root():
24
  <html>
25
  <head>
26
  <title>TrainingCourseGen</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  </head>
28
  <body>
 
29
  <h1>Welcome to TrainingCourseGen!</h1>
30
- <p>This is a tool to create generative courses for training managers.</p>
31
- <p><a href="https://github.com/Zoqi-Andrew-Senior-Project/ScriboAI-Consumer" target="_blank" rel="noopener noreferrer">Github for customer-serving side of the project.</p>
32
- <p><a href="https://martinezjandrew-trainingcoursegen.hf.space/docs">Hugging Face Space hosted Docs.</a></p>
33
- <p><a href="http://localhost:8000/docs">Local host hosted docs</a></p>
 
 
 
 
 
 
 
 
 
 
 
34
  </html>
35
  """
36
  return HTMLResponse(content=content, status_code=200)
 
24
  <html>
25
  <head>
26
  <title>TrainingCourseGen</title>
27
+ <style>
28
+ body {
29
+ font-family: Arial, sans-serif;
30
+ background-color: #f9f9f9;
31
+ color: #333;
32
+ text-align: center;
33
+ padding: 50px;
34
+ }
35
+ img {
36
+ width: 80px;
37
+ margin-bottom: 20px;
38
+ }
39
+ h1 {
40
+ color: #2c3e50;
41
+ }
42
+ a {
43
+ color: #1a73e8;
44
+ text-decoration: none;
45
+ }
46
+ a:hover {
47
+ text-decoration: underline;
48
+ }
49
+ .links {
50
+ margin-top: 30px;
51
+ }
52
+ </style>
53
  </head>
54
  <body>
55
+ <img src="https://github.com/Zoqi-Andrew-Senior-Project/ScriboAI-Consumer/blob/main/consumer_frontend/public/minilogo.png?raw=true" alt="ScriboAI Logo" />
56
  <h1>Welcome to TrainingCourseGen!</h1>
57
+ <p>
58
+ This backend API supports ScriboAI, a tool for automating corporate training content.
59
+ It includes three key endpoints:
60
+ </p>
61
+ <ul style="text-align: left; display: inline-block;">
62
+ <li><strong>/generate_outline</strong> - Create a course outline from a topic</li>
63
+ <li><strong>/update_outline</strong> - Modify the generated outline</li>
64
+ <li><strong>/generate_pages</strong> - Generate full training pages from the outline</li>
65
+ </ul>
66
+ <div class="links">
67
+ <p><a href="https://github.com/Zoqi-Andrew-Senior-Project/ScriboAI-Consumer" target="_blank" rel="noopener noreferrer">📂 GitHub - ScriboAI Consumer App</a></p>
68
+ <p><a href="https://martinezjandrew-trainingcoursegen.hf.space/docs" target="_blank" rel="noopener noreferrer">📄 Hugging Face Space - API Docs</a></p>
69
+ <p><a href="/docs">📍 Local API Docs</a></p>
70
+ </div>
71
+ </body>
72
  </html>
73
  """
74
  return HTMLResponse(content=content, status_code=200)