GhostDragon01 commited on
Commit
b918af1
·
1 Parent(s): 54df027

refactor: Simplify application launch configuration and update Gradio version constraint

Browse files
Files changed (2) hide show
  1. app.py +2 -8
  2. requirements.txt +1 -1
app.py CHANGED
@@ -12,7 +12,6 @@ from dotenv import load_dotenv
12
  load_dotenv()
13
 
14
  # Add debug information for deployment
15
- print(f"===== Application Startup at {__import__('datetime').datetime.now().strftime('%Y-%m-%d %H:%M:%S')} =====")
16
  print(f"Python version: {sys.version}")
17
 
18
 
@@ -70,13 +69,8 @@ def main():
70
  if __name__ == "__main__":
71
  try:
72
  demo = main()
73
- # Add some configuration for better stability
74
- demo.launch(
75
- show_error=True,
76
- debug=False, # Set to False in production
77
- show_tips=False,
78
- enable_queue=True,
79
- )
80
  except Exception as e:
81
  print(f"❌ Critical error during launch: {e}")
82
  import traceback
 
12
  load_dotenv()
13
 
14
  # Add debug information for deployment
 
15
  print(f"Python version: {sys.version}")
16
 
17
 
 
69
  if __name__ == "__main__":
70
  try:
71
  demo = main()
72
+ # Simple launch configuration for maximum compatibility
73
+ demo.launch()
 
 
 
 
 
74
  except Exception as e:
75
  print(f"❌ Critical error during launch: {e}")
76
  import traceback
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.44.0,<5.0.0
2
  google-api-python-client>=2.0.0
3
  google-auth-httplib2>=0.1.0
4
  google-auth-oauthlib>=1.0.0
 
1
+ gradio>=4.0.0
2
  google-api-python-client>=2.0.0
3
  google-auth-httplib2>=0.1.0
4
  google-auth-oauthlib>=1.0.0