Spaces:
Sleeping
Sleeping
Delete home.html
Browse files
home.html
DELETED
|
@@ -1,121 +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>Home - NLP Model Trainer</title>
|
| 7 |
-
<style>
|
| 8 |
-
body {
|
| 9 |
-
font-family: Arial, sans-serif;
|
| 10 |
-
background-color: #f4f7fa;
|
| 11 |
-
color: #333;
|
| 12 |
-
margin: 0;
|
| 13 |
-
padding: 0;
|
| 14 |
-
display: flex;
|
| 15 |
-
justify-content: center;
|
| 16 |
-
align-items: center;
|
| 17 |
-
min-height: 100vh;
|
| 18 |
-
}
|
| 19 |
-
.container {
|
| 20 |
-
width: 90%;
|
| 21 |
-
max-width: 800px;
|
| 22 |
-
background-color: #ffffff;
|
| 23 |
-
padding: 30px;
|
| 24 |
-
border-radius: 10px;
|
| 25 |
-
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
|
| 26 |
-
text-align: center;
|
| 27 |
-
}
|
| 28 |
-
h1, h2 {
|
| 29 |
-
color: #4a90e2;
|
| 30 |
-
margin-bottom: 20px;
|
| 31 |
-
}
|
| 32 |
-
ul {
|
| 33 |
-
list-style-type: none;
|
| 34 |
-
padding: 0;
|
| 35 |
-
}
|
| 36 |
-
li {
|
| 37 |
-
display: flex;
|
| 38 |
-
justify-content: space-between;
|
| 39 |
-
align-items: center;
|
| 40 |
-
padding: 10px 0;
|
| 41 |
-
border-bottom: 1px solid #e0e0e0;
|
| 42 |
-
}
|
| 43 |
-
li:last-child {
|
| 44 |
-
border-bottom: none;
|
| 45 |
-
}
|
| 46 |
-
a {
|
| 47 |
-
color: #4a90e2;
|
| 48 |
-
text-decoration: none;
|
| 49 |
-
font-weight: bold;
|
| 50 |
-
}
|
| 51 |
-
a:hover {
|
| 52 |
-
text-decoration: underline;
|
| 53 |
-
}
|
| 54 |
-
form {
|
| 55 |
-
margin-top: 30px;
|
| 56 |
-
display: flex;
|
| 57 |
-
flex-direction: column;
|
| 58 |
-
align-items: center;
|
| 59 |
-
}
|
| 60 |
-
label {
|
| 61 |
-
margin: 10px 0 5px;
|
| 62 |
-
font-size: 14px;
|
| 63 |
-
color: #555;
|
| 64 |
-
}
|
| 65 |
-
input[type="text"],
|
| 66 |
-
input[type="file"] {
|
| 67 |
-
width: 100%;
|
| 68 |
-
max-width: 400px;
|
| 69 |
-
padding: 8px;
|
| 70 |
-
margin-bottom: 15px;
|
| 71 |
-
border: 1px solid #ccc;
|
| 72 |
-
border-radius: 5px;
|
| 73 |
-
font-size: 14px;
|
| 74 |
-
}
|
| 75 |
-
button[type="submit"] {
|
| 76 |
-
padding: 10px 20px;
|
| 77 |
-
font-size: 16px;
|
| 78 |
-
color: white;
|
| 79 |
-
background-color: #4a90e2;
|
| 80 |
-
border: none;
|
| 81 |
-
border-radius: 5px;
|
| 82 |
-
cursor: pointer;
|
| 83 |
-
transition: background-color 0.3s;
|
| 84 |
-
}
|
| 85 |
-
button[type="submit"]:hover {
|
| 86 |
-
background-color: #357ab8;
|
| 87 |
-
}
|
| 88 |
-
.redirect-btn {
|
| 89 |
-
margin-top: 20px;
|
| 90 |
-
font-size: 16px;
|
| 91 |
-
color: #4a90e2;
|
| 92 |
-
background: none;
|
| 93 |
-
border: none;
|
| 94 |
-
cursor: pointer;
|
| 95 |
-
}
|
| 96 |
-
</style>
|
| 97 |
-
</head>
|
| 98 |
-
|
| 99 |
-
<body>
|
| 100 |
-
<div class="container">
|
| 101 |
-
<h1>Available Models</h1>
|
| 102 |
-
<ul>
|
| 103 |
-
{% for model in models %}
|
| 104 |
-
<li>
|
| 105 |
-
<a href="{{ url_for('chat', model_name=model) }}">{{ model }}</a>
|
| 106 |
-
<a href="{{ url_for('download_model', model_name=model) }}">Download</a>
|
| 107 |
-
</li>
|
| 108 |
-
{% endfor %}
|
| 109 |
-
</ul>
|
| 110 |
-
|
| 111 |
-
<h2>Upload New Model</h2>
|
| 112 |
-
<form action="{{ url_for('upload_file') }}" method="post" enctype="multipart/form-data">
|
| 113 |
-
<label>Model Name:</label>
|
| 114 |
-
<input type="text" name="model_name" required>
|
| 115 |
-
<label>Q&A CSV File:</label>
|
| 116 |
-
<input type="file" name="file" accept=".csv" required>
|
| 117 |
-
<button type="submit">Train Model</button>
|
| 118 |
-
</form>
|
| 119 |
-
</div>
|
| 120 |
-
</body>
|
| 121 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|