Spaces:
Runtime error
Runtime error
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Import Gesture Data</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | |
<style> | |
body { | |
font-family: 'Roboto', sans-serif; | |
background-color: #f4f4f9; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
min-height: 100vh; | |
} | |
.container { | |
background: #ffffff; | |
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); | |
padding: 30px; | |
border-radius: 10px; | |
text-align: center; | |
max-width: 500px; | |
width: 100%; | |
} | |
h1 { | |
color: #333; | |
margin-bottom: 20px; | |
} | |
form { | |
margin-bottom: 20px; | |
} | |
input[type="file"] { | |
padding: 10px; | |
font-size: 16px; | |
margin-bottom: 20px; | |
border: 1px solid #ccc; | |
border-radius: 5px; | |
width: 100%; | |
box-sizing: border-box; | |
} | |
button { | |
background-color: #4CAF50; | |
color: white; | |
padding: 10px 20px; | |
border: none; | |
border-radius: 5px; | |
font-size: 16px; | |
cursor: pointer; | |
transition: background-color 0.3s ease; | |
} | |
button:hover { | |
background-color: #4CAF50; | |
} | |
.back-link { | |
display: inline-block; | |
margin-top: 20px; | |
color: #4CAF50; | |
text-decoration: none; | |
font-weight: 700; | |
transition: color 0.3s ease; | |
} | |
.back-link:hover { | |
color: #4CAF50; | |
} | |
.fa-upload { | |
margin-right: 8px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h1><i class="fas fa-file-upload"></i> Import Gesture Data</h1> | |
<p>Upload your gesture data CSV file to visualize the results.</p> | |
<form action="{{ url_for('import_data') }}" method="POST" enctype="multipart/form-data"> | |
<input type="file" name="file" accept=".csv" required> | |
<button type="submit"><i class="fas fa-upload"></i> Upload and Visualize</button> | |
</form> | |
<a href="{{ url_for('index') }}" class="back-link"><i class="fas fa-arrow-left"></i> Back to Home</a> | |
</div> | |
</body> | |
</html> | |
'' |