Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +8 -0
templates/index.html
CHANGED
@@ -46,6 +46,11 @@
|
|
46 |
</div>
|
47 |
<button type="submit" class="w-full bg-purple-500 text-white p-2 rounded-lg hover:bg-purple-600 transition">Find Programs by Description</button>
|
48 |
</form>
|
|
|
|
|
|
|
|
|
|
|
49 |
</div>
|
50 |
|
51 |
<!-- Results Section -->
|
@@ -64,6 +69,9 @@
|
|
64 |
</div>
|
65 |
{% endfor %}
|
66 |
</div>
|
|
|
|
|
|
|
67 |
{% endif %}
|
68 |
</div>
|
69 |
</div>
|
|
|
46 |
</div>
|
47 |
<button type="submit" class="w-full bg-purple-500 text-white p-2 rounded-lg hover:bg-purple-600 transition">Find Programs by Description</button>
|
48 |
</form>
|
49 |
+
|
50 |
+
<!-- New Button to Process Hugging Face Dataset -->
|
51 |
+
<form hx-post="/" hx-target="#results" hx-swap="innerHTML" class="space-y-4">
|
52 |
+
<button type="submit" name="process_hf" value="true" class="w-full bg-orange-500 text-white p-2 rounded-lg hover:bg-orange-600 transition">Process Hugging Face Dataset</button>
|
53 |
+
</form>
|
54 |
</div>
|
55 |
|
56 |
<!-- Results Section -->
|
|
|
69 |
</div>
|
70 |
{% endfor %}
|
71 |
</div>
|
72 |
+
{% elif message %}
|
73 |
+
<h2 class="text-2xl font-bold text-blue-400 mb-4">Status</h2>
|
74 |
+
<p class="text-gray-200">{{ message }}</p>
|
75 |
{% endif %}
|
76 |
</div>
|
77 |
</div>
|