app.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
from pathlib import Path
|
6 |
|
7 |
import gradio as gr
|
8 |
-
from detect import detect
|
9 |
from util import get_all_weights
|
10 |
|
11 |
|
@@ -72,8 +72,6 @@ def main():
|
|
72 |
|
73 |
|
74 |
def tab3(label="参数设置"):
|
75 |
-
from detect import opt
|
76 |
-
|
77 |
with gr.Tab(label):
|
78 |
with gr.Column():
|
79 |
for k, v in sorted(vars(opt).items()):
|
|
|
5 |
from pathlib import Path
|
6 |
|
7 |
import gradio as gr
|
8 |
+
from detect import detect,opt
|
9 |
from util import get_all_weights
|
10 |
|
11 |
|
|
|
72 |
|
73 |
|
74 |
def tab3(label="参数设置"):
|
|
|
|
|
75 |
with gr.Tab(label):
|
76 |
with gr.Column():
|
77 |
for k, v in sorted(vars(opt).items()):
|