Spaces:
				
			
			
	
			
			
		Build error
		
	
	
	
			
			
	
	
	
	
		
		
		Build error
		
	Commit 
							
							·
						
						9eb7cee
	
1
								Parent(s):
							
							4aa9c39
								
update
Browse files- templates/experiment.html +43 -2
    	
        templates/experiment.html
    CHANGED
    
    | @@ -67,6 +67,36 @@ | |
| 67 | 
             
                    button.reject:hover {
         | 
| 68 | 
             
                        background-color: #e53935;
         | 
| 69 | 
             
                    }
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 70 | 
             
                </style>
         | 
| 71 | 
             
                <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
         | 
| 72 | 
             
            </head>
         | 
| @@ -82,15 +112,26 @@ | |
| 82 | 
             
                        <iframe src="{{ visualization }}"></iframe>
         | 
| 83 | 
             
                    </div>
         | 
| 84 | 
             
                    <div class="buttons">
         | 
| 85 | 
            -
                        <form action="{{ url_for('feedback') }}" method="post">
         | 
| 86 | 
             
                            <input type="hidden" name="session_id" value="{{ session_id }}">
         | 
| 87 | 
             
                            <button type="submit" name="prediction" value="TRUE">Model will predict TRUE</button>
         | 
| 88 | 
             
                        </form>
         | 
| 89 | 
            -
                        <form action="{{ url_for('feedback') }}" method="post">
         | 
| 90 | 
             
                            <input type="hidden" name="session_id" value="{{ session_id }}">
         | 
| 91 | 
             
                            <button type="submit" name="prediction" value="FALSE" class="reject">Model will predict FALSE</button>
         | 
| 92 | 
             
                        </form>
         | 
| 93 | 
             
                    </div>
         | 
| 94 | 
             
                </div>
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 95 | 
             
            </body>
         | 
| 96 | 
             
            </html>
         | 
|  | |
| 67 | 
             
                    button.reject:hover {
         | 
| 68 | 
             
                        background-color: #e53935;
         | 
| 69 | 
             
                    }
         | 
| 70 | 
            +
                    /* Loader styles */
         | 
| 71 | 
            +
                    .overlay {
         | 
| 72 | 
            +
                        position: fixed;
         | 
| 73 | 
            +
                        top: 0;
         | 
| 74 | 
            +
                        left: 0;
         | 
| 75 | 
            +
                        width: 100%;
         | 
| 76 | 
            +
                        height: 100%;
         | 
| 77 | 
            +
                        background-color: rgba(0, 0, 0, 0.5);
         | 
| 78 | 
            +
                        display: none;
         | 
| 79 | 
            +
                        z-index: 1000;
         | 
| 80 | 
            +
                    }
         | 
| 81 | 
            +
                    .loader {
         | 
| 82 | 
            +
                        border: 5px solid #f3f3f3;
         | 
| 83 | 
            +
                        border-top: 5px solid #3498db;
         | 
| 84 | 
            +
                        border-radius: 50%;
         | 
| 85 | 
            +
                        width: 50px;
         | 
| 86 | 
            +
                        height: 50px;
         | 
| 87 | 
            +
                        animation: spin 1s linear infinite;
         | 
| 88 | 
            +
                        position: fixed;
         | 
| 89 | 
            +
                        top: 50%;
         | 
| 90 | 
            +
                        left: 50%;
         | 
| 91 | 
            +
                        margin-top: -25px;
         | 
| 92 | 
            +
                        margin-left: -25px;
         | 
| 93 | 
            +
                        display: none;
         | 
| 94 | 
            +
                        z-index: 1001;
         | 
| 95 | 
            +
                    }
         | 
| 96 | 
            +
                    @keyframes spin {
         | 
| 97 | 
            +
                        0% { transform: rotate(0deg); }
         | 
| 98 | 
            +
                        100% { transform: rotate(360deg); }
         | 
| 99 | 
            +
                    }
         | 
| 100 | 
             
                </style>
         | 
| 101 | 
             
                <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
         | 
| 102 | 
             
            </head>
         | 
|  | |
| 112 | 
             
                        <iframe src="{{ visualization }}"></iframe>
         | 
| 113 | 
             
                    </div>
         | 
| 114 | 
             
                    <div class="buttons">
         | 
| 115 | 
            +
                        <form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
         | 
| 116 | 
             
                            <input type="hidden" name="session_id" value="{{ session_id }}">
         | 
| 117 | 
             
                            <button type="submit" name="prediction" value="TRUE">Model will predict TRUE</button>
         | 
| 118 | 
             
                        </form>
         | 
| 119 | 
            +
                        <form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
         | 
| 120 | 
             
                            <input type="hidden" name="session_id" value="{{ session_id }}">
         | 
| 121 | 
             
                            <button type="submit" name="prediction" value="FALSE" class="reject">Model will predict FALSE</button>
         | 
| 122 | 
             
                        </form>
         | 
| 123 | 
             
                    </div>
         | 
| 124 | 
             
                </div>
         | 
| 125 | 
            +
             | 
| 126 | 
            +
                <!-- Loader and overlay -->
         | 
| 127 | 
            +
                <div class="overlay" id="overlay"></div>
         | 
| 128 | 
            +
                <div class="loader" id="loader"></div>
         | 
| 129 | 
            +
             | 
| 130 | 
            +
                <script>
         | 
| 131 | 
            +
                    function showLoader() {
         | 
| 132 | 
            +
                        document.getElementById('overlay').style.display = 'block';
         | 
| 133 | 
            +
                        document.getElementById('loader').style.display = 'block';
         | 
| 134 | 
            +
                    }
         | 
| 135 | 
            +
                </script>
         | 
| 136 | 
             
            </body>
         | 
| 137 | 
             
            </html>
         | 
