Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (122 loc) · 3.68 KB
/
Copy pathindex.html
File metadata and controls
129 lines (122 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>GenAI Dataset Assistant</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap"
rel="stylesheet"
/>
<style>
body {
font-family: "Outfit", sans-serif;
background: linear-gradient(120deg, #ffdde1, #c2e9fb);
padding: 30px;
}
.btn-success{
background-color: #575dd0;
border:0;
}
.btn-info{
background-color: #002387;
border:0;
color:white;
}
.glass-box {
max-width: 850px;
margin: auto;
background: rgba(255, 255, 255, 0.85);
border-radius: 16px;
padding: 30px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.title {
background: linear-gradient(to right, #6a11cb, #2575fc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 600;
}
pre {
background-color: #f1f1f1;
padding: 1em;
border-radius: 10px;
}
pre#outputText{
text-align: justify;
overflow-y: auto;
white-space: pre-wrap;
}
</style>
</head>
<body>
<div class="glass-box">
<h2 class="text-center title mb-4">GenAI Dataset Assistant</h2>
<!-- 🔍 Keyword Search -->
<div class="mb-3">
<label for="keywordInput" class="form-label fw-semibold"
>Enter a topic</label
>
<div class="input-group">
<input
type="text"
id="keywordInput"
class="form-control"
placeholder="e.g. mental health, finance, sports"
/>
<button class="btn btn-primary" onclick="searchDatasets()">
🔍 Search Datasets
</button>
</div>
</div>
<!-- 🔽 Unified Dropdown -->
<div class="mb-4">
<label for="datasetDropdown" class="form-label fw-semibold"
>Select a Dataset (Kaggle + HF)</label
>
<select id="datasetDropdown" class="form-select">
<option disabled selected>Results will appear here...</option>
</select>
</div>
<!-- 🔘 Row Count -->
<div class="mb-4">
<label for="rowToggle" class="form-label fw-semibold"
>Synthetic Rows</label
>
<select id="rowToggle" class="form-select">
<option value="5">5 Rows</option>
<option value="20">20 Rows</option>
<option value="50">50 Rows</option>
<option value="100">100 Rows</option>
</select>
</div>
<!-- 🧠 Action Buttons -->
<div class="mb-4 d-grid gap-2">
<button class="btn btn-success" onclick="generateSummary()">
Generate Summary
</button>
<button class="btn btn-info" onclick="generateData()">
Synthetic Data
</button>
</div>
<!-- 📄 Output -->
<div id="resultContainer" class="mb-4">
<h5 class="fw-bold">📄 Gemini Output</h5>
<div class="border bg-light p-3 rounded">
<pre id="outputText">No output yet...</pre>
</div>
</div>
<!-- 💾 Download -->
<div class="text-center" id="downloadSection" style="display: none">
<button class="btn btn-outline-dark" id = "downloadBtn" onclick="downloadCSV()">
Download Merged Dataset
</button>
</div>
</div>
<script src="app.js"></script>
</body>
</html>