Skip to content

Commit a19bed9

Browse files
authored
Merge pull request #327 from ataymano/ataymano/omnitool_fix
Omnitool security updates
2 parents 46545c5 + 0e7ee8e commit a19bed9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

omnitool/gradio/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,4 @@ def clear_chat(state):
423423
stop_button.click(stop_app, [state], None)
424424

425425
if __name__ == "__main__":
426-
demo.launch(server_name="0.0.0.0", server_port=7888)
426+
demo.launch(server_name="127.0.0.1", server_port=7888)

omnitool/gradio/app_new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,4 +757,4 @@ def reset_view():
757757
gr.HTML("<script>(" + js_refresh + ")();</script>")
758758

759759
if __name__ == "__main__":
760-
demo.launch(server_name="0.0.0.0", server_port=7888)
760+
demo.launch(server_name="127.0.0.1", server_port=7888)

omnitool/omnibox/vm/win11setup/setupscripts/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def capture_screen_with_cursor():
7878
return send_file(img_io, mimetype='image/png')
7979

8080
if __name__ == '__main__':
81-
app.run(debug=True, host="0.0.0.0", port=args.port)
81+
app.run(host="127.0.0.1", port=args.port)

omnitool/omniparserserver/omniparserserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def parse_arguments():
2020
parser.add_argument('--caption_model_path', type=str, default='../../weights/icon_caption_florence', help='Path to the caption model')
2121
parser.add_argument('--device', type=str, default='cpu', help='Device to run the model')
2222
parser.add_argument('--BOX_TRESHOLD', type=float, default=0.05, help='Threshold for box detection')
23-
parser.add_argument('--host', type=str, default='0.0.0.0', help='Host for the API')
23+
parser.add_argument('--host', type=str, default='127.0.0.1', help='Host for the API')
2424
parser.add_argument('--port', type=int, default=8000, help='Port for the API')
2525
args = parser.parse_args()
2626
return args

0 commit comments

Comments
 (0)