Spaces:
Runtime error
Runtime error
File size: 698 Bytes
0469d65 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#!/usr/bin/env python3
"""
Quick demo of SafetyMaster Pro Gradio interface
"""
from gradio_interface import SafetyMasterGradio
def main():
print("π Starting SafetyMaster Pro - Gradio Demo")
# Create the app
app = SafetyMasterGradio()
interface = app.create_interface()
# Launch with demo settings
print("π Launching demo interface...")
print("π± Open your browser to: http://localhost:7860")
print("π Press Ctrl+C to stop")
interface.launch(
server_name="127.0.0.1", # Local only for demo
server_port=7860,
share=False,
debug=True,
show_error=True
)
if __name__ == "__main__":
main() |