File size: 2,041 Bytes
5bc067b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en-US">

<head>
    <title>OCR</title>
    <link rel="icon" href="https://cdn-icons-png.flaticon.com/512/5262/5262072.png">
    <link rel="stylesheet" href="../static/css/style2.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
</head>

<body style="background-color: #242525;">
    <!-- Container START -->
    <div class="container d-inline align-items-center">
        <div class="text-center text-white-50">
            <h1 class="text-white-50">PDF Classifier</h1>
            <p class="mb-3 mt-n1">Please Upload your pdf and click submit, and wait for the results</p>
        </div>

        <div class="row m-2">
            <!-- Main content START -->
            <div class="col-12 d-flex justify-content-center">

                <!-- Blog item START -->
                <form class="col-6" action="/treatment" id="upload-form" method="POST" enctype="multipart/form-data">

                    <div class="drag-image" id="dropArea">
                        <div class="text-center ">
                            <h6 class="text-white-50 mb-3">Drag and Drop PDF here</h6>
                            <span class="text-white-50">OR</span>
                            <h6 class="text-white-50 mt-3">Click here</h6>
                            <input id="file-input" type="file" name="image" accept=".pdf" hidden>
                        </div>
                    </div>
                    <div class="d-flex justify-content-center ">
                        <button class="btn me-3 btn-ocr" id="reset" type="button" onclick="deleteCurrentFile()"> <i
                                class="bi bi-pencil-fill pe-1"></i> Clear </button>
                        <button type="submit" class="btn ms-3 btn-ocr">Submit</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!-- Container END -->
    <script src="../static/js/test.js" type="text/javascript"></script>
</body>

</html>