Spaces:
Build error
Build error
demo.flagging_mode
Browse files142 unmodified lines143144145146147148149150151152153154155156157158159160161142 unmodified linesdemo = gr.Interface(fn=run_app,inputs=[gr.Video(label="Upload Traffic Video (.mp4)"),gr.File(label="Upload flow_stats.json (Stage 2 Output)")],outputs=[gr.Video(label="Violation Output Video"),gr.JSON(label="Per-Vehicle Log"),gr.JSON(label="Summary")],title="π Wrong-Direction Detection β Stage 3",description=description_text,examples=[[example_vid, example_flow]] if example_vid and example_flow else None,)if __name__ == "__main__":demo.launch()142 unmodified lines143144145146147148149150151152153154155156157158159160161162163142 unmodified linesdemo = gr.Interface(fn=run_app,inputs=[gr.Video(label="Upload Traffic Video (.mp4)"),gr.File(label="Upload flow_stats.json (Stage 2 Output)")],outputs=[gr.Video(label="Violation Output Video"),gr.JSON(label="Per-Vehicle Log"),gr.JSON(label="Summary")],title="π Wrong-Direction Detection β Stage 3",description=description_text,examples=None, # disable example caching)# π§ disable all caching/flagging that causes _csv.Errordemo.flagging_mode = "never"demo.cache_examples = Falseif __name__ == "__main__":os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"demo.launch(server_name="0.0.0.0", server_port=7860, ssr_mode=False, show_api=False)
app.py+13-11