Spaces:
Runtime error
Runtime error
#!/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() |