Spaces:
Sleeping
Sleeping
File size: 1,166 Bytes
f104fee |
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
#!/usr/bin/env python3
"""
Web3 Research Co-Pilot Application
Complete production-ready crypto research assistant powered by AI
"""
import sys
import os
import asyncio
from pathlib import Path
# Add project root to path
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
def main():
print("π Starting Web3 Research Co-Pilot...")
try:
from app import Web3CoPilotApp
app = Web3CoPilotApp()
interface = app.create_interface()
print("β
Application initialized successfully!")
print("π Launching web interface...")
print("π Local URL: http://localhost:7860")
interface.launch(
server_name="0.0.0.0",
server_port=7860,
share=False,
show_api=False,
quiet=False
)
except ImportError as e:
print(f"β Import error: {e}")
print("Please install dependencies: pip install -r requirements.txt")
sys.exit(1)
except Exception as e:
print(f"β Application error: {e}")
sys.exit(1)
if __name__ == "__main__":
main()
|