BabakScrapes commited on
Commit
51322b8
·
verified ·
1 Parent(s): e8c8f24

Upload 3 files

Browse files
Files changed (3) hide show
  1. index.html +51 -0
  2. style.css +52 -0
  3. waiting.html +2 -0
index.html ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <link rel="stylesheet" href="templates/style.css" type="text/css"/>
6
+ <title>Upload File</title>
7
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
8
+ <style>
9
+ /* Optional CSS to style the title and description */
10
+ .title {
11
+ font-size: 2em;
12
+ font-weight: bold;
13
+ margin-bottom: 0.5em;
14
+ }
15
+ .description {
16
+ font-size: 1.2em;
17
+ color:#555;
18
+ }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <div id="content">
23
+ <h1> Multi-text Anecdotal Discourse Classification</h1>
24
+ <p class="description">Upload correctly formatted CSV or TXT files to
25
+ receive clause segmentation and anecedotal discourse feature
26
+ classification output for many texts at once.<br>
27
+ If uploading a TXT file, each text should be placed on a separate line.<br>
28
+ If uploading a CSV file, each text should be placed in a single cell of the first column.<br>
29
+ </p>
30
+ <form action="/" method="post" enctype="multipart/form-data">
31
+ <input type="file" name="file">
32
+ <input type="submit" value="Upload" onclick="loading();">
33
+ </form>
34
+ </div>
35
+ <div id="loading">
36
+ <!-- Add the loading message here -->
37
+ <p>File received. If you have not received a prompt to save the output,
38
+ your text is still processing. Please wait. If you have saved an
39
+ output file and would like to submit a new document for processing,
40
+ please refresh the page.
41
+ </p>
42
+ </div>
43
+ <script type="text/javascript">
44
+ function loading(){
45
+ // Show the loading div and hide the content div
46
+ $("#loading").show();
47
+ $("#content").hide();
48
+ }
49
+ </script>
50
+ </body>
51
+ </html>
style.css ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* styles.css */
2
+ body {
3
+ font-family: Arial, sans-serif;
4
+ background-color: #f8f8f8;
5
+ color: #333;
6
+ padding: 20px;
7
+ }
8
+
9
+ h1 {
10
+ font-size: 24px;
11
+ margin-bottom: 20px;
12
+ color: #4a4a4a;
13
+ }
14
+
15
+ form {
16
+ background-color: #ffffff;
17
+ padding: 20px;
18
+ border-radius: 5px;
19
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
20
+ }
21
+
22
+ input[type="file"] {
23
+ margin-bottom: 10px;
24
+ }
25
+
26
+ input[type="submit"] {
27
+ background-color: #007bff;
28
+ color: #ffffff;
29
+ border: none;
30
+ padding: 8px 16px;
31
+ border-radius: 4px;
32
+ cursor: pointer;
33
+ transition: background-color 0.3s ease;
34
+ }
35
+
36
+ input[type="submit"]:hover {
37
+ background-color: #0056b3;
38
+ }
39
+
40
+ #loading {
41
+ padding: 20px;
42
+ border-radius: 5px;
43
+ background-color: #f0f0f0;
44
+ text-align: center;
45
+ font-size: 18px;
46
+ color: #4a4a4a;
47
+ display: none;
48
+ }
49
+
50
+ #loading p {
51
+ margin: 0;
52
+ }
waiting.html ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ <!DOCTYPE html>
2
+ <html><body><h1>Please wait while your file is being processed...</h1></body></html>