safetyMaster / demo_gradio.py
mrvero's picture
Upload folder using huggingface_hub
0469d65 verified
raw
history blame contribute delete
698 Bytes
#!/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()