ericmichael commited on
Commit
1c38bc8
·
1 Parent(s): cc03605

adding chatbot

Browse files
Files changed (2) hide show
  1. app/users.py +1 -1
  2. requirements.txt +4 -5
app/users.py CHANGED
@@ -57,7 +57,7 @@ seconds_in_month = seconds_in_day * 31
57
  seconds_in_six_months = seconds_in_month * 6
58
 
59
  def get_jwt_strategy() -> JWTStrategy:
60
- return JWTStrategy(secret=SECRET, lifetime_seconds=seconds_in_six_months)
61
 
62
 
63
  auth_backend = AuthenticationBackend(
 
57
  seconds_in_six_months = seconds_in_month * 6
58
 
59
  def get_jwt_strategy() -> JWTStrategy:
60
+ return JWTStrategy(secret=SECRET, lifetime_seconds=3600)
61
 
62
 
63
  auth_backend = AuthenticationBackend(
requirements.txt CHANGED
@@ -1,11 +1,10 @@
1
- fastapi==0.92.0
2
- fastapi-users-db-sqlalchemy==4.0.5
3
  gradio==3.27.0
4
- httpx==0.23.3
5
  openai==0.27.4
6
  python-dotenv==1.0.0
7
- Requests==2.28.1
8
  SQLAlchemy==1.4.47
9
  uvicorn==0.21.1
10
  asyncpg==0.27.0
11
- greenlet==2.0.1
 
1
+ fastapi==0.95.1
2
+ fastapi-users-db-sqlalchemy<5.0.0
3
  gradio==3.27.0
4
+ httpx==0.24.0
5
  openai==0.27.4
6
  python-dotenv==1.0.0
7
+ Requests==2.28.2
8
  SQLAlchemy==1.4.47
9
  uvicorn==0.21.1
10
  asyncpg==0.27.0