File size: 2,005 Bytes
a1c6194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!-- index.html -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Chicle&family=Rubik+Glitch&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="static/weather.css?v=2">
    <title>Weather Prediction</title>
</head>
<body>
    <div class="header-container container">
        <h1>Weather Prediction</h1>
    </div>
    <form id="uploadForm" action="/predict" method="post" enctype="multipart/form-data" class="container">
        <div id="fileInputContainer">
            <input type="file" name="file" id="fileInput" accept="image/*">
            <label for="fileInput" id="fileInputLabel">
                <i class="fas fa-cloud-upload-alt upload-icon"></i>
                Drag & Drop or Click to Upload
            </label>
        </div>
        <div id="imageContainer" class="container">
            <img id="imagePreview">
        </div>
        <div id="predictionResult" class="container"></div>
        <button type="submit" class="predict-btn" id="predictButton">
            <span class="loading-icon" id="loadingIcon"></span>
            Predict
        </button>
    </form>
    <script src="static/weather.js"></script>
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>