RAG_AI_V2 / templates /update_db.html
WebashalarForML's picture
Upload 7 files
a6b6b45 verified
raw
history blame
2.87 kB
{% extends 'base.html' %}
{% block content %}
<style>
html, body {
height: 100%;
margin: 0;
}
.container {
display: flex;
flex-direction: column;
height: 50vh;
overflow: hidden;
}
.card {
margin: auto;
background-color: #2c2c3e;
color: #f5f5f5;
border: none;
width: 50%;
max-height: calc(50vh - 50px);
overflow-y: auto;
}
.card-header {
background-color: #181831;
border-bottom: 2px solid #444;
padding: 1rem;
text-align: center;
position: sticky;
top: 0;
z-index: 1000;
}
.text-muted {
color: rgb(121 136 151 / 75%) !important;
}
.form-label {
font-weight: bold;
color: #cfcfcf;
}
.form-control {
background-color: #1e1e2f;
color: #f5f5f5;
border: 1px solid #444;
}
.form-control:focus {
background-color: #1e1e2f;
color: #f5f5f5;
border-color: #4c4cff;
box-shadow: 0 0 4px #4c4cff;
}
.btn-primary {
background-color: #4c4cff;
border-color: #4c4cff;
}
.btn-primary:hover {
background-color: #3838e8;
border-color: #3838e8;
}
.card::-webkit-scrollbar {
width: 8px;
}
.card::-webkit-scrollbar-thumb {
background-color: #444;
border-radius: 4px;
}
</style>
<div class="container mt-5">
<div class="card shadow">
<div class="card-header">
<h3>Update the Vector Database</h3>
</div>
<div class="card-body">
<form method="post" enctype="multipart/form-data">
<!-- Database Name Display -->
<div class="form-group">
<label for="db_name" class="form-label">Database Name</label>
<input type="text" id="db_name" name="db_name" class="form-control" value="{{ db_name }}" readonly>
</div>
<!-- File or Folder Upload -->
<div class="form-group mt-3">
<label for="files" class="form-label">Upload Files or Folder</label>
<input type="file" id="files" name="files" class="form-control" webkitdirectory directory multiple>
<small class="text-muted">Note: You can upload multiple files, a folder, or a single file.</small>
</div>
<!-- Submit Button -->
<div class="mt-4 text-center">
<button type="submit" class="btn btn-primary px-5">Update</button>
</div>
</form>
</div>
</div>
</div>
{% endblock %}