faustoont commited on
Commit
d71c714
·
1 Parent(s): b128c5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -3,19 +3,15 @@ import streamlit as st
3
  from io import StringIO
4
  from PIL import Image
5
  import pandas as pd
6
-
7
  import torch
8
  import torch.nn as nn
9
  import torchvision.models as models
10
-
11
  import albumentations as A
12
  from albumentations.pytorch.transforms import ToTensorV2
13
-
14
- import numpy as np
15
-
16
  import cv2
17
 
18
- st.title('Dummy')
19
  uploaded_file = st.file_uploader('Select File')
20
 
21
  id2class = {0: 'agricultural', 1: 'airplane', 2: 'baseballdiamond', 3: 'beach', 4: 'buildings', 5: 'chaparral', 6: 'denseresidential', 7: 'forest', 8: 'freeway', 9: 'golfcourse', 10: 'intersection', 11: 'mediumresidential', 12: 'mobilehomepark', 13: 'overpass', 14: 'parkinglot', 15: 'river', 16: 'runway', 17: 'sparseresidential', 18: 'storagetanks', 19: 'tenniscourt', 20: 'harbor'}
 
3
  from io import StringIO
4
  from PIL import Image
5
  import pandas as pd
6
+ import numpy as np
7
  import torch
8
  import torch.nn as nn
9
  import torchvision.models as models
 
10
  import albumentations as A
11
  from albumentations.pytorch.transforms import ToTensorV2
 
 
 
12
  import cv2
13
 
14
+ st.title('Predict Images')
15
  uploaded_file = st.file_uploader('Select File')
16
 
17
  id2class = {0: 'agricultural', 1: 'airplane', 2: 'baseballdiamond', 3: 'beach', 4: 'buildings', 5: 'chaparral', 6: 'denseresidential', 7: 'forest', 8: 'freeway', 9: 'golfcourse', 10: 'intersection', 11: 'mediumresidential', 12: 'mobilehomepark', 13: 'overpass', 14: 'parkinglot', 15: 'river', 16: 'runway', 17: 'sparseresidential', 18: 'storagetanks', 19: 'tenniscourt', 20: 'harbor'}