alesamodio commited on
Commit
3ced307
·
2 Parent(s): 5dd801446ad147

Merge branch 'main' of https://huggingface.co/spaces/alesamodio/Socrates_docker

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,11 +5,10 @@ import jwt
5
  from fastapi import FastAPI, Header, HTTPException
6
  from pydantic import BaseModel
7
  from typing import Optional
8
- from supabase_ie import get_user_profile_by_username
9
  import os
10
 
11
  from socrates_core import socrates_reply
12
- from supabase_ie import get_user_profile_by_username # you may need to implement this
13
 
14
  SUPABASE_JWT_SECRET = os.environ["SUPABASE_JWT_SECRET"]
15
  APP = FastAPI()
@@ -19,7 +18,7 @@ class ChatRequest(BaseModel):
19
  message: str
20
  username: str # e.g. "user_lollo632"
21
 
22
- profile, user_id = get_user_profile_by_username(username)
23
 
24
  @APP.get("/health")
25
  async def health():
 
5
  from fastapi import FastAPI, Header, HTTPException
6
  from pydantic import BaseModel
7
  from typing import Optional
8
+ #from supabase_ie import get_user_profile_by_username
9
  import os
10
 
11
  from socrates_core import socrates_reply
 
12
 
13
  SUPABASE_JWT_SECRET = os.environ["SUPABASE_JWT_SECRET"]
14
  APP = FastAPI()
 
18
  message: str
19
  username: str # e.g. "user_lollo632"
20
 
21
+ #profile, user_id = get_user_profile_by_username(username)
22
 
23
  @APP.get("/health")
24
  async def health():