TRMT commited on
Commit
12c1d5a
1 Parent(s): ece5009

Delete app/templates/multi_search.html

Browse files
Files changed (1) hide show
  1. app/templates/multi_search.html +0 -83
app/templates/multi_search.html DELETED
@@ -1,83 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Multimodal Bird Search</title>
5
- <link rel="stylesheet" type="text/css" href="/static/style.css">
6
- </head>
7
- <body>
8
- <a href="/sound_search">音声検索へ</a>
9
- <form id="api_key_form" action="/word_search" method="post">
10
- <div>
11
- <label for="api_key">ChatGPT API Key&nbsp;</label><!-- 追加 -->
12
- <input type="text" id="api_key" name="api_key" value="{{ api_key }}" required><!-- 追加 -->
13
- <!-- <button type="button" id="submit-button">入力</button> -->
14
- <!-- </div> -->
15
- <!-- </form> -->
16
-
17
- <br>
18
-
19
- <!-- <a href="/sound_search">音声検索へ</a> -->
20
- <!-- <form action="/word_search" method="post"> -->
21
- <!-- <div> -->
22
- <label>単語検索</label>
23
- <input class=long-input type="text" name="query" placeholder="Input bird name">
24
- <!-- <button type="submit">検索</button> -->
25
- <button type="submit" id="submit-button">検索</button>
26
- </div>
27
- </form>
28
-
29
- <!--
30
- "self_taxon_name"
31
- "self_ja_name"
32
- "self_ja_aliases"
33
- "self_en_name"
34
- "self_en_aliases"
35
- "self_link"
36
- "self_imgs_list"-->
37
- <br>
38
- <!-- <h1>Welcome to the Test Page, {{ dammy_data }}!</h1> -->
39
-
40
- <h3>類似度:{{max_cos_in_wikidata}}</h3>
41
- <blockquote class=smallArea>
42
- <h3>和名:<a href="{{ self_link }}">{{ self_ja_name }}</a> {{ self_ja_aliases }}
43
- <br>英名:<a href="{{ self_link }}">{{ self_en_name }}</a> {{ self_en_aliases }}</h3>
44
-
45
- {% for img in self_imgs_list %}
46
- <iframe src="{{ img }}" width="500" height="300" frameborder="0"></iframe>
47
- {% endfor %}
48
-
49
- <h3>解説:</h3>
50
- <p>{{ gpt_ans_self }}</p>
51
-
52
- <hr>
53
-
54
- <h3>上位概念</h3>
55
- <h4>和名:<a href="{{ parent_link }}">{{ parent_ja_name }}</a> {{ parent_ja_aliases }}
56
- <br>英名:<a href="{{ parent_link }}">{{ parent_en_name }}</a> {{ parent_en_aliases }}</h4>
57
-
58
- {% for img in parent_imgs_list %}
59
- <iframe src="{{ img }}" width="500" height="300" frameborder="0"></iframe>
60
- {% endfor %}
61
-
62
- <h4>解説:</h4>
63
- <p>{{ gpt_ans_parent }}</p>
64
-
65
- <hr>
66
-
67
- <h3>下位概念</h3>
68
- <h4>解説:</h4>
69
- <p>{{ gpt_ans_children }}</p>
70
- </blockquote>
71
-
72
-
73
- <!-- <script>
74
- // Submitボタンがクリックされたときの処理
75
- document.getElementById("submit-button").addEventListener("click", function () {
76
- const apiKey = document.getElementById("api_key").value;
77
- const form = document.getElementById("api_key_form");
78
- form.action = `/word_search/?api_key=${apiKey}`;
79
- form.submit();
80
- });
81
- </script> -->
82
- </body>
83
- </html>