File size: 2,444 Bytes
c3c14c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54274cc
 
 
 
 
 
 
 
 
 
c3c14c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51322b8
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">

<head>
	<link rel="stylesheet" href="templates/style.css" type="text/css"/>
	<title>Upload File</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <style>
        /* Optional CSS to style the title and description */
        .title {
            font-size: 2em;
            font-weight: bold;
            margin-bottom: 0.5em;
        }
        .description {
            font-size: 1.2em;
            color:#555;
        }
    </style>
</head>
<body>
    <div id="content">
        <h1> Multi-text Anecdotal Discourse Classification</h1>
        <p class="description">
            This tool identifies anecdotal versus generalized portions of natural text. A demo of the model can be found 
            <a href="https://huggingface.co/spaces/BabakScrapes/Anecedotal_Discourse_Classifier_Demo" target="_blank" rel="noopener noreferrer">
                here
            </a>.
            It can be used to classify clauses in many texts at once. More information about the model and the labels it provides can be found in 
            <a href="https://huggingface.co/spaces/BabakScrapes/Anecedotal_Discourse_Classifier_Multitext/blob/main/README.md" target="_blank" rel="noopener noreferrer">
                this README file
            </a>.
            <br>
            To use the tool, upload correctly formatted input files:<br>
            If uploading a TXT file, each text to be classified should be placed on a separate line.<br>
            If uploading a CSV file, each text should be placed in a single cell of the first column.<br>
        </p>
        <form action="/" method="post" enctype="multipart/form-data">
            <input type="file" name="file">
            <input type="submit" value="Upload" onclick="loading();">
        </form>
    </div>
    <div id="loading">
        <!-- Add the loading message here -->
        <p>File received. If you have not received a prompt to save the output,
            your text is still processing. Please wait. If you have saved an
            output file and would like to submit a new document for processing,
            please refresh the page. 
        </p>
    </div>
    <script type="text/javascript">
        function loading(){
            // Show the loading div and hide the content div
            $("#loading").show();
            $("#content").hide();       
        }
    </script>
</body>
</html>