""" Launch Chat Interface Quick launcher for the new chat-based interface """ from chat_interface import create_chat_interface from datetime import datetime if __name__ == "__main__": # Write directly to log file with open('/tmp/chat_output.log', 'a') as f: f.write(f"\n{'='*70}\n") f.write(f"TSDB APP START: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n") f.write(f"{'='*70}\n\n") print("🚀 Starting Chat-Based Demo Builder...") print("=" * 60) print() print("💬 New Chat Interface Features:") print(" • Natural language conversation") print(" • /over command to change company/use case") print(" • Visible stage indicator (read-only)") print(" • Editable AI model selector") print(" • Quick action buttons") print() print("🌐 Opening in browser at http://localhost:7863") print("=" * 60) app = create_chat_interface() # Enable concurrent request handling # Each session gets its own ChatDemoInterface via gr.State() app.queue( default_concurrency_limit=6, # Allow up to 6 concurrent demo builds ) app.launch( server_name="0.0.0.0", server_port=7863, share=False, inbrowser=True, debug=True )