Spaces:
Sleeping
Sleeping
Commit
·
5860b62
1
Parent(s):
24a3958
chore: Update main function signature in app.py
Browse files- tools/app.py +7 -5
tools/app.py
CHANGED
@@ -147,7 +147,7 @@ def on_file_upload(video_file_path: str) -> None:
|
|
147 |
return video_info
|
148 |
|
149 |
|
150 |
-
def main(gradio_config: GradioDPVOConfig):
|
151 |
with gr.Blocks(
|
152 |
css=""".gradio-container {margin: 0 !important; min-width: 100%};""",
|
153 |
title="Mini-DPVO Demo",
|
@@ -239,11 +239,13 @@ def main(gradio_config: GradioDPVOConfig):
|
|
239 |
)
|
240 |
|
241 |
demo.launch(
|
242 |
-
share=gradio_config.share,
|
243 |
-
server_name=gradio_config.server_name,
|
244 |
-
server_port=gradio_config.port,
|
245 |
)
|
246 |
|
247 |
|
248 |
if __name__ == "__main__":
|
249 |
-
main(
|
|
|
|
|
|
147 |
return video_info
|
148 |
|
149 |
|
150 |
+
def main(gradio_config: GradioDPVOConfig | None = None):
|
151 |
with gr.Blocks(
|
152 |
css=""".gradio-container {margin: 0 !important; min-width: 100%};""",
|
153 |
title="Mini-DPVO Demo",
|
|
|
239 |
)
|
240 |
|
241 |
demo.launch(
|
242 |
+
# share=gradio_config.share,
|
243 |
+
# server_name=gradio_config.server_name,
|
244 |
+
# server_port=gradio_config.port,
|
245 |
)
|
246 |
|
247 |
|
248 |
if __name__ == "__main__":
|
249 |
+
main(
|
250 |
+
# tyro.cli(GradioDPVOConfig)
|
251 |
+
)
|