danielquillanroxas commited on
Commit
2004ed3
ยท
1 Parent(s): 1830edb

changed stuff

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -77,7 +77,7 @@ description = (
77
  "This model uses YOLOv8 to detect and blur sensitive content."
78
  )
79
 
80
- # Using the EXACT format your friend used - lists of single-item lists
81
  interface = gr.Interface(
82
  fn=detect_and_blur,
83
  inputs=gr.Image(),
@@ -90,9 +90,15 @@ interface = gr.Interface(
90
  examples=[
91
  ['examples/example1.jpg'],
92
  ['examples/example2.jpg']
93
- ]
 
 
94
  )
95
 
96
  # Launch the app with the correct server parameters
97
  if __name__ == "__main__":
98
- interface.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
77
  "This model uses YOLOv8 to detect and blur sensitive content."
78
  )
79
 
80
+ # Using the EXACT format your friend used, but with flagging disabled
81
  interface = gr.Interface(
82
  fn=detect_and_blur,
83
  inputs=gr.Image(),
 
90
  examples=[
91
  ['examples/example1.jpg'],
92
  ['examples/example2.jpg']
93
+ ],
94
+ allow_flagging="never", # Disable flagging completely
95
+ analytics_enabled=False # Disable analytics
96
  )
97
 
98
  # Launch the app with the correct server parameters
99
  if __name__ == "__main__":
100
+ interface.launch(
101
+ server_name="0.0.0.0",
102
+ server_port=7860,
103
+ share=False
104
+ )