Spaces:
Sleeping
Sleeping
feat: redirect to huggingface deployment server
Browse files- templates/index.html +2 -2
templates/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
<main class="bg-white p-16 rounded-lg">
|
| 13 |
<h1 class="text-3xl font-bold mb-8">Prediksi Biaya Asuransi Anda:</h1>
|
| 14 |
|
| 15 |
-
<form action="
|
| 16 |
<label for="age" class="mb-2">Usia</label>
|
| 17 |
<input type="text" name="age" placeholder="Usia" required="required" class="p-4 bg-gray-100 rounded-md" />
|
| 18 |
|
|
@@ -53,7 +53,7 @@
|
|
| 53 |
<section class="mt-8 h-full flex-auto rounded-lg md:mt-0 md:ml-8">
|
| 54 |
<div class="bg-white p-16 rounded-lg">
|
| 55 |
<h1 class="text-2xl mb-8">Estimasi biaya asuransi Anda adalah</h1>
|
| 56 |
-
<h2 class="text-5xl font-bold">${{ '{:,.2f}'.format(insurance_cost) }}
|
| 57 |
{% if insurance_cost != 0 %}
|
| 58 |
<div class="mt-8">
|
| 59 |
<p><strong>Usia:</strong> {{ age }} tahun</p>
|
|
|
|
| 12 |
<main class="bg-white p-16 rounded-lg">
|
| 13 |
<h1 class="text-3xl font-bold mb-8">Prediksi Biaya Asuransi Anda:</h1>
|
| 14 |
|
| 15 |
+
<form action="https://alproits-cyberdas-lr.hf.space/predict" method="post" enctype="multipart/form-data" class="flex flex-col">
|
| 16 |
<label for="age" class="mb-2">Usia</label>
|
| 17 |
<input type="text" name="age" placeholder="Usia" required="required" class="p-4 bg-gray-100 rounded-md" />
|
| 18 |
|
|
|
|
| 53 |
<section class="mt-8 h-full flex-auto rounded-lg md:mt-0 md:ml-8">
|
| 54 |
<div class="bg-white p-16 rounded-lg">
|
| 55 |
<h1 class="text-2xl mb-8">Estimasi biaya asuransi Anda adalah</h1>
|
| 56 |
+
<h2 class="text-5xl font-bold">${{ '{:,.2f}'.format(insurance_cost) }}</h2>
|
| 57 |
{% if insurance_cost != 0 %}
|
| 58 |
<div class="mt-8">
|
| 59 |
<p><strong>Usia:</strong> {{ age }} tahun</p>
|