Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import torch
|
|
| 10 |
import torch.nn.functional as F
|
| 11 |
|
| 12 |
|
| 13 |
-
class
|
| 14 |
LABELS = [
|
| 15 |
"Panoramic",
|
| 16 |
"Feature",
|
|
@@ -150,7 +150,7 @@ def get_layout():
|
|
| 150 |
'<div class="footer">© 2024 LCL 版權所有<br>開發者:何立智、楊哲睿</div>',
|
| 151 |
)
|
| 152 |
start_button.click(
|
| 153 |
-
fn=
|
| 154 |
inputs=image_input,
|
| 155 |
outputs=chart,
|
| 156 |
)
|
|
|
|
| 10 |
import torch.nn.functional as F
|
| 11 |
|
| 12 |
|
| 13 |
+
class Litton7Classifier:
|
| 14 |
LABELS = [
|
| 15 |
"Panoramic",
|
| 16 |
"Feature",
|
|
|
|
| 150 |
'<div class="footer">© 2024 LCL 版權所有<br>開發者:何立智、楊哲睿</div>',
|
| 151 |
)
|
| 152 |
start_button.click(
|
| 153 |
+
fn=Litton7Classifier().predict,
|
| 154 |
inputs=image_input,
|
| 155 |
outputs=chart,
|
| 156 |
)
|