Spaces:
Configuration error
Configuration error
| #!/usr/bin/env python3 | |
| """ | |
| BI Storyteller - Marketing Analysis Automation Platform | |
| Run this script to start the Gradio application | |
| """ | |
| import sys | |
| import os | |
| # Add the current directory to Python path | |
| sys.path.append(os.path.dirname(os.path.abspath(__file__))) | |
| from main import BIStoryteller | |
| if __name__ == "__main__": | |
| print("π― Starting BI Storyteller - Marketing Analysis Automation Platform") | |
| print("=" * 60) | |
| # Create and launch the application | |
| app = BIStoryteller() | |
| interface = app.create_interface() | |
| print("\nπ BI Storyteller is ready!") | |
| print("π Open your browser and navigate to the provided URL") | |
| print("π Don't forget to set your Groq API key in the interface") | |
| print("=" * 60) | |
| # Launch with custom settings | |
| interface.launch( | |
| server_name="0.0.0.0", # Allow external access | |
| server_port=7860, # Default Gradio port | |
| share=False, # Set to True if you want a public link | |
| debug=True, # Enable debug mode | |
| show_error=True, # Show detailed error messages | |
| quiet=False # Show startup messages | |
| ) |