Spaces:
Sleeping
Sleeping
Create templates/index.html
Browse files- templates/index.html +48 -0
templates/index.html
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<title>Flavor Profile Prediction</title>
|
| 6 |
+
</head>
|
| 7 |
+
<body>
|
| 8 |
+
<h1>Indian Food Flavor Profile Prediction</h1>
|
| 9 |
+
<form method="post">
|
| 10 |
+
<label>Ingredients (comma separated):</label><br/>
|
| 11 |
+
<textarea name="ingredients" rows="3" cols="50" required></textarea><br/><br/>
|
| 12 |
+
|
| 13 |
+
<label>Diet:</label>
|
| 14 |
+
<select name="diet" required>
|
| 15 |
+
<option value="vegetarian">vegetarian</option>
|
| 16 |
+
<option value="non vegetarian">non vegetarian</option>
|
| 17 |
+
</select><br/><br/>
|
| 18 |
+
|
| 19 |
+
<label>Course:</label>
|
| 20 |
+
<select name="course" required>
|
| 21 |
+
<option value="dessert">dessert</option>
|
| 22 |
+
<option value="main course">main course</option>
|
| 23 |
+
<option value="starter">starter</option>
|
| 24 |
+
<option value="snack">snack</option>
|
| 25 |
+
</select><br/><br/>
|
| 26 |
+
|
| 27 |
+
<label>Region:</label>
|
| 28 |
+
<select name="region" required>
|
| 29 |
+
<option value="East">East</option>
|
| 30 |
+
<option value="West">West</option>
|
| 31 |
+
<option value="North">North</option>
|
| 32 |
+
<option value="South">South</option>
|
| 33 |
+
</select><br/><br/>
|
| 34 |
+
|
| 35 |
+
<label>Preparation Time (minutes):</label>
|
| 36 |
+
<input type="number" name="prep_time" min="0" required /><br/><br/>
|
| 37 |
+
|
| 38 |
+
<label>Cook Time (minutes):</label>
|
| 39 |
+
<input type="number" name="cook_time" min="0" required /><br/><br/>
|
| 40 |
+
|
| 41 |
+
<input type="submit" value="Predict Flavor Profile" />
|
| 42 |
+
</form>
|
| 43 |
+
|
| 44 |
+
{% if prediction %}
|
| 45 |
+
<h2>Predicted Flavor Profile: {{ prediction }}</h2>
|
| 46 |
+
{% endif %}
|
| 47 |
+
</body>
|
| 48 |
+
</html>
|