WebashalarForML commited on
Commit
6a40006
1 Parent(s): 704efa8

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +33 -4
templates/index.html CHANGED
@@ -93,6 +93,28 @@
93
  transform: rotate(360deg);
94
  }
95
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  </style>
97
  </head>
98
 
@@ -100,11 +122,13 @@
100
  <div class="container">
101
  <h1>Visiting Card Data Extractor</h1>
102
 
103
- <div class="file-upload-section">
104
-
 
 
105
 
 
106
  <form id="fileUploadForm" action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
107
- <!-- <input type="file" name="file" class="form-control" required /> -->
108
  <input type="file" name="files" multiple class="form-control" required />
109
  <input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
110
  </form>
@@ -150,7 +174,12 @@
150
  setTimeout(() => flashMessage.remove(), 1000);
151
  }
152
  }, 3000);
 
 
 
 
 
153
  </script>
154
  </body>
155
 
156
- </html>
 
93
  transform: rotate(360deg);
94
  }
95
  }
96
+
97
+ /* Tabs styles */
98
+ .tab {
99
+ position: absolute;
100
+ top: 10px;
101
+ left: 10px;
102
+ }
103
+
104
+ .tab button {
105
+ background-color: #ee4410;
106
+ border: none;
107
+ padding: 10px;
108
+ margin: 0 5px;
109
+ color: #f5f5f7;
110
+ cursor: pointer;
111
+ border-radius: 5px;
112
+ transition: background-color 0.3s ease;
113
+ }
114
+
115
+ .tab button:hover {
116
+ background-color: #444;
117
+ }
118
  </style>
119
  </head>
120
 
 
122
  <div class="container">
123
  <h1>Visiting Card Data Extractor</h1>
124
 
125
+ <div class="tab">
126
+ <button class="tablinks" onclick="openLink('https://webashalarforml-imagedataextractor2.hf.space/')">Image Extractor</button>
127
+ <button class="tablinks" onclick="openLink('https://webashalarforml-ResumeExtractor2.hf.space/')">Resume Parser Extractor</button>
128
+ </div>
129
 
130
+ <div class="file-upload-section">
131
  <form id="fileUploadForm" action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
 
132
  <input type="file" name="files" multiple class="form-control" required />
133
  <input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
134
  </form>
 
174
  setTimeout(() => flashMessage.remove(), 1000);
175
  }
176
  }, 3000);
177
+
178
+ // Function to open links
179
+ function openLink(url) {
180
+ window.open(url, '_blank'); // Opens the link in a new tab
181
+ }
182
  </script>
183
  </body>
184
 
185
+ </html>