diff --git a/omnitool/gradio/app.py b/omnitool/gradio/app.py index 54cca8a..836b644 100644 --- a/omnitool/gradio/app.py +++ b/omnitool/gradio/app.py @@ -423,4 +423,4 @@ with gr.Blocks(theme=gr.themes.Default()) as demo: stop_button.click(stop_app, [state], None) if __name__ == "__main__": - demo.launch(server_name="0.0.0.0", server_port=7888) \ No newline at end of file + demo.launch(server_name="127.0.0.1", server_port=7888) \ No newline at end of file diff --git a/omnitool/gradio/app_new.py b/omnitool/gradio/app_new.py index d67ae18..ed1e47d 100644 --- a/omnitool/gradio/app_new.py +++ b/omnitool/gradio/app_new.py @@ -757,4 +757,4 @@ with gr.Blocks(theme=gr.themes.Default()) as demo: gr.HTML("") if __name__ == "__main__": - demo.launch(server_name="0.0.0.0", server_port=7888) + demo.launch(server_name="127.0.0.1", server_port=7888) diff --git a/omnitool/omnibox/vm/win11setup/setupscripts/server/main.py b/omnitool/omnibox/vm/win11setup/setupscripts/server/main.py index 5343918..8414889 100644 --- a/omnitool/omnibox/vm/win11setup/setupscripts/server/main.py +++ b/omnitool/omnibox/vm/win11setup/setupscripts/server/main.py @@ -78,4 +78,4 @@ def capture_screen_with_cursor(): return send_file(img_io, mimetype='image/png') if __name__ == '__main__': - app.run(debug=True, host="0.0.0.0", port=args.port) \ No newline at end of file + app.run(host="127.0.0.1", port=args.port) \ No newline at end of file diff --git a/omnitool/omniparserserver/omniparserserver.py b/omnitool/omniparserserver/omniparserserver.py index 49fb306..045fbac 100644 --- a/omnitool/omniparserserver/omniparserserver.py +++ b/omnitool/omniparserserver/omniparserserver.py @@ -20,7 +20,7 @@ def parse_arguments(): parser.add_argument('--caption_model_path', type=str, default='../../weights/icon_caption_florence', help='Path to the caption model') parser.add_argument('--device', type=str, default='cpu', help='Device to run the model') parser.add_argument('--BOX_TRESHOLD', type=float, default=0.05, help='Threshold for box detection') - parser.add_argument('--host', type=str, default='0.0.0.0', help='Host for the API') + parser.add_argument('--host', type=str, default='127.0.0.1', help='Host for the API') parser.add_argument('--port', type=int, default=8000, help='Port for the API') args = parser.parse_args() return args