lichih commited on
Commit
a0f4a5c
·
verified ·
1 Parent(s): 6a06974

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -9,7 +9,7 @@ import spaces
9
  from io import BytesIO
10
 
11
 
12
- class Classifier:
13
  LABELS = [
14
  "Panoramic",
15
  "Feature",
@@ -29,7 +29,6 @@ class Classifier:
29
  else:
30
  self.device = device
31
 
32
- self.device = device
33
  self.model = torch.load(
34
  model_path, map_location=self.device, weights_only=False
35
  )
@@ -149,7 +148,7 @@ def get_layout():
149
  '<div class="footer">© 2024 LCL 版權所有<br>開發者:何立智、楊哲睿</div>',
150
  )
151
  start_button.click(
152
- fn=Classifier().predict,
153
  inputs=image_input,
154
  outputs=chart,
155
  )
 
9
  from io import BytesIO
10
 
11
 
12
+ class Litton7Classifier:
13
  LABELS = [
14
  "Panoramic",
15
  "Feature",
 
29
  else:
30
  self.device = device
31
 
 
32
  self.model = torch.load(
33
  model_path, map_location=self.device, weights_only=False
34
  )
 
148
  '<div class="footer">© 2024 LCL 版權所有<br>開發者:何立智、楊哲睿</div>',
149
  )
150
  start_button.click(
151
+ fn=Litton7Classifier().predict,
152
  inputs=image_input,
153
  outputs=chart,
154
  )