Files changed (1) hide show
  1. index.html +0 -85
index.html DELETED
@@ -1,85 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Test Creation Agent</title>
7
- <style>
8
- body {
9
- font-family: Arial, sans-serif;
10
- margin: 20px;
11
- line-height: 1.6;
12
- }
13
- .container {
14
- max-width: 800px;
15
- margin: 0 auto;
16
- padding: 20px;
17
- border: 1px solid #ddd;
18
- border-radius: 5px;
19
- box-shadow: 0 0 10px rgba(0,0,0,0.1);
20
- }
21
- h1 {
22
- color: #2c7bfe;
23
- }
24
- .loading {
25
- text-align: center;
26
- margin: 50px 0;
27
- }
28
- .button {
29
- background-color: #2c7bfe;
30
- color: white;
31
- padding: 10px 15px;
32
- border: none;
33
- border-radius: 4px;
34
- cursor: pointer;
35
- font-size: 16px;
36
- text-decoration: none;
37
- display: inline-block;
38
- margin: 10px 0;
39
- }
40
- </style>
41
- </head>
42
- <body>
43
- <div class="container">
44
- <h1>📝 Test Creation Agent</h1>
45
- <p>This application helps you create educational tests through conversation.</p>
46
-
47
- <div class="loading">
48
- <p>If you're seeing this page, the application may still be starting up...</p>
49
- <p>Please wait a moment and then try refreshing the page.</p>
50
- <p>The application should be accessible at port 7860.</p>
51
-
52
- <a href="/" class="button">Refresh</a>
53
- <a href="https://huggingface.co/docs/hub/spaces-overview" target="_blank" class="button">Learn About Spaces</a>
54
- </div>
55
-
56
- <hr>
57
- <p>
58
- <strong>Expected functionality:</strong> This application provides a chat interface to
59
- collect educational test creation parameters through natural language conversation.
60
- </p>
61
- <ul>
62
- <li>Chapters/topics to include</li>
63
- <li>Number of questions per chapter</li>
64
- <li>Difficulty distribution</li>
65
- <li>Test duration</li>
66
- <li>Test date and time</li>
67
- </ul>
68
- </div>
69
-
70
- <script>
71
- // Attempt to redirect to port 7860
72
- window.onload = function() {
73
- // Check if we're already on the right port
74
- if (!window.location.port || window.location.port !== "7860") {
75
- // Try to redirect to the Gradio interface
76
- setTimeout(function() {
77
- // Get the current hostname
78
- const newUrl = window.location.protocol + "//" + window.location.hostname + ":7860";
79
- window.location.href = newUrl;
80
- }, 3000); // Wait 3 seconds before trying to redirect
81
- }
82
- };
83
- </script>
84
- </body>
85
- </html>