Sstudize_AI_Agent / index.html
iejfoiesf's picture
Upload 7 files
5658551 verified
raw
history blame
2.94 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Creation Agent</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
color: #2c7bfe;
}
.loading {
text-align: center;
margin: 50px 0;
}
.button {
background-color: #2c7bfe;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
text-decoration: none;
display: inline-block;
margin: 10px 0;
}
</style>
</head>
<body>
<div class="container">
<h1>๐Ÿ“ Test Creation Agent</h1>
<p>This application helps you create educational tests through conversation.</p>
<div class="loading">
<p>If you're seeing this page, the application may still be starting up...</p>
<p>Please wait a moment and then try refreshing the page.</p>
<p>The application should be accessible at port 7860.</p>
<a href="/" class="button">Refresh</a>
<a href="https://huggingface.co/docs/hub/spaces-overview" target="_blank" class="button">Learn About Spaces</a>
</div>
<hr>
<p>
<strong>Expected functionality:</strong> This application provides a chat interface to
collect educational test creation parameters through natural language conversation.
</p>
<ul>
<li>Chapters/topics to include</li>
<li>Number of questions per chapter</li>
<li>Difficulty distribution</li>
<li>Test duration</li>
<li>Test date and time</li>
</ul>
</div>
<script>
// Attempt to redirect to port 7860
window.onload = function() {
// Check if we're already on the right port
if (!window.location.port || window.location.port !== "7860") {
// Try to redirect to the Gradio interface
setTimeout(function() {
// Get the current hostname
const newUrl = window.location.protocol + "//" + window.location.hostname + ":7860";
window.location.href = newUrl;
}, 3000); // Wait 3 seconds before trying to redirect
}
};
</script>
</body>
</html>