-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (37 loc) · 1016 Bytes
/
index.html
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
<!doctype html>
<html>
<head>
<title>GenAI image analyzer example</title>
</head>
<body>
<style>
body {
font-family: Verdana, Helvetica, sans-serif;
background-color: #DDDDDD;
}
</style>
<h1>GenAI basic image analyzer (v0.1)</h1>
{% if error %}
<h3>Error on previous request</h3>
<p style="color: red;">{{ error }}</p>
<hr>
{% endif %}
{% if result and image %}
<h3>Image uploaded</h3>
<img src="{{ image }}" />
<h3>LLM analysis</h3>
<b>Prompted received:</b> {{ prompt }}<p></p>
<b>Model used:</b> {{ model }}<p></p>
<b>Model response:</b> {{ result }}<p></p>
<hr>
{% endif %}
<h3>Analyze an image</h3>
<form action="{{ upload_url }}" method="POST" enctype="multipart/form-data">
<label for="file">Upload image to analyze:</label><br>
<input type="file" name="file"><p></p>
<label for="prompt">Image prompt for LLM:</label><br>
<input type="text" name="prompt" value="Describe this image"><p></p>
<input type="submit">
</form>
</body>
</html>