Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ import numpy as np
|
|
| 9 |
import pandas as pd
|
| 10 |
import torch
|
| 11 |
import os
|
|
|
|
| 12 |
|
| 13 |
# [theme]
|
| 14 |
# base="dark"
|
|
@@ -162,7 +163,7 @@ if st.button('확인'):
|
|
| 162 |
predictions , true_labels = [], []
|
| 163 |
|
| 164 |
# Predict
|
| 165 |
-
for batch in
|
| 166 |
# Add batch to GPU
|
| 167 |
batch = tuple(t.to(device) for t in batch)
|
| 168 |
|
|
|
|
| 9 |
import pandas as pd
|
| 10 |
import torch
|
| 11 |
import os
|
| 12 |
+
from tqdm import tqdm
|
| 13 |
|
| 14 |
# [theme]
|
| 15 |
# base="dark"
|
|
|
|
| 163 |
predictions , true_labels = [], []
|
| 164 |
|
| 165 |
# Predict
|
| 166 |
+
for batch in tqdm(test_dataloader):
|
| 167 |
# Add batch to GPU
|
| 168 |
batch = tuple(t.to(device) for t in batch)
|
| 169 |
|