Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,7 @@ from breed_detection import create_detection_tab
|
|
| 22 |
from breed_comparison import create_comparison_tab
|
| 23 |
from breed_recommendation import create_recommendation_tab
|
| 24 |
from breed_visualization import create_visualization_tab
|
|
|
|
| 25 |
from html_templates import (
|
| 26 |
format_description_html,
|
| 27 |
format_single_dog_result,
|
|
@@ -471,6 +472,9 @@ def main():
|
|
| 471 |
# 先創建歷史組件實例(但不創建標籤頁)
|
| 472 |
history_component = create_history_component()
|
| 473 |
|
|
|
|
|
|
|
|
|
|
| 474 |
with gr.Tabs():
|
| 475 |
# 1. 品種檢測標籤頁
|
| 476 |
example_images = [
|
|
|
|
| 22 |
from breed_comparison import create_comparison_tab
|
| 23 |
from breed_recommendation import create_recommendation_tab
|
| 24 |
from breed_visualization import create_visualization_tab
|
| 25 |
+
from style_transfer import DogStyleTransfer, create_style_transfer_tab
|
| 26 |
from html_templates import (
|
| 27 |
format_description_html,
|
| 28 |
format_single_dog_result,
|
|
|
|
| 472 |
# 先創建歷史組件實例(但不創建標籤頁)
|
| 473 |
history_component = create_history_component()
|
| 474 |
|
| 475 |
+
# Initialize style transfor
|
| 476 |
+
dog_style_transfer = DogStyleTransfer()
|
| 477 |
+
|
| 478 |
with gr.Tabs():
|
| 479 |
# 1. 品種檢測標籤頁
|
| 480 |
example_images = [
|