Ajeya95 commited on
Commit
8777e66
·
verified ·
1 Parent(s): 1605aeb

made changes in launch settings and .env

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -15,14 +15,14 @@ import re
15
  from abc import ABC, abstractmethod
16
 
17
  # Load environment variables from .env file
18
- try:
19
- from dotenv import load_dotenv
20
- load_dotenv()
21
- print("✅ Environment variables loaded from .env file")
22
- except ImportError:
23
- print("⚠️ python-dotenv not installed. Install with: pip install python-dotenv")
24
- except Exception as e:
25
- print(f"⚠️ Could not load .env file: {e}")
26
 
27
  # Import enhanced agents with real API integrations
28
  try:
@@ -903,8 +903,8 @@ def create_interface():
903
  if __name__ == "__main__":
904
  app = create_interface()
905
  app.launch(
906
- share=True, # Creates public URL for sharing
907
- server_name="127.0.0.1", # Localhost access
908
  server_port=7860,
909
  show_error=True,
910
  inbrowser=True # Automatically opens browser
 
15
  from abc import ABC, abstractmethod
16
 
17
  # Load environment variables from .env file
18
+ # try:
19
+ # from dotenv import load_dotenv
20
+ # load_dotenv()
21
+ # print("✅ Environment variables loaded from .env file")
22
+ # except ImportError:
23
+ # print("⚠️ python-dotenv not installed. Install with: pip install python-dotenv")
24
+ # except Exception as e:
25
+ # print(f"⚠️ Could not load .env file: {e}")
26
 
27
  # Import enhanced agents with real API integrations
28
  try:
 
903
  if __name__ == "__main__":
904
  app = create_interface()
905
  app.launch(
906
+ share=False, # Creates public URL for sharing
907
+ server_name="0.0.0.0", # Localhost access
908
  server_port=7860,
909
  show_error=True,
910
  inbrowser=True # Automatically opens browser