Hadiil commited on
Commit
65665a4
·
verified ·
1 Parent(s): fd0bb9d

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +10 -10
static/index.html CHANGED
@@ -19,7 +19,7 @@
19
  form {
20
  margin-bottom: 20px;
21
  }
22
- input[type="file"], input[type="text"], textarea, button {
23
  display: block;
24
  margin: 10px 0;
25
  padding: 10px;
@@ -47,6 +47,14 @@
47
  </form>
48
  <div class="result" id="summaryResult"></div>
49
 
 
 
 
 
 
 
 
 
50
  <!-- Text-Based Question Answering -->
51
  <h2>Text-Based Question Answering</h2>
52
  <form id="qaForm">
@@ -58,14 +66,6 @@
58
  </form>
59
  <div class="result" id="qaResult"></div>
60
 
61
- <!-- Image Captioning -->
62
- <h2>Image Captioning</h2>
63
- <form id="captionForm">
64
- <input type="file" id="image" name="image" accept=".jpg,.jpeg,.png">
65
- <button type="submit">Generate Caption</button>
66
- </form>
67
- <div class="result" id="captionResult"></div>
68
-
69
  <!-- Visual Question Answering -->
70
  <h2>Visual Question Answering</h2>
71
  <form id="vqaForm">
@@ -108,8 +108,8 @@
108
 
109
  // Attach event listeners to forms
110
  document.getElementById("summarizeForm").onsubmit = (e) => handleFormSubmit(e, "/summarize", "summaryResult");
111
- document.getElementById("qaForm").onsubmit = (e) => handleFormSubmit(e, "/answer", "qaResult");
112
  document.getElementById("captionForm").onsubmit = (e) => handleFormSubmit(e, "/caption", "captionResult");
 
113
  document.getElementById("vqaForm").onsubmit = (e) => handleFormSubmit(e, "/vqa", "vqaResult");
114
  </script>
115
  </body>
 
19
  form {
20
  margin-bottom: 20px;
21
  }
22
+ input[type="file"], textarea, button {
23
  display: block;
24
  margin: 10px 0;
25
  padding: 10px;
 
47
  </form>
48
  <div class="result" id="summaryResult"></div>
49
 
50
+ <!-- Image Captioning -->
51
+ <h2>Image Captioning</h2>
52
+ <form id="captionForm">
53
+ <input type="file" id="image" name="image" accept=".jpg,.jpeg,.png">
54
+ <button type="submit">Generate Caption</button>
55
+ </form>
56
+ <div class="result" id="captionResult"></div>
57
+
58
  <!-- Text-Based Question Answering -->
59
  <h2>Text-Based Question Answering</h2>
60
  <form id="qaForm">
 
66
  </form>
67
  <div class="result" id="qaResult"></div>
68
 
 
 
 
 
 
 
 
 
69
  <!-- Visual Question Answering -->
70
  <h2>Visual Question Answering</h2>
71
  <form id="vqaForm">
 
108
 
109
  // Attach event listeners to forms
110
  document.getElementById("summarizeForm").onsubmit = (e) => handleFormSubmit(e, "/summarize", "summaryResult");
 
111
  document.getElementById("captionForm").onsubmit = (e) => handleFormSubmit(e, "/caption", "captionResult");
112
+ document.getElementById("qaForm").onsubmit = (e) => handleFormSubmit(e, "/answer", "qaResult");
113
  document.getElementById("vqaForm").onsubmit = (e) => handleFormSubmit(e, "/vqa", "vqaResult");
114
  </script>
115
  </body>