Skip to content

Commit

Permalink
add census
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmoffet committed Nov 23, 2024
1 parent 71fb08b commit b75ad57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions backend/apps/rag/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,9 +909,6 @@ async def store_web_search(form_data: SearchForm, user=Depends(get_current_user)
)


from langchain_experimental.text_splitter import SemanticChunker


async def store_data_in_vector_db(
data, collection_name, overwrite: bool = False
) -> bool:
Expand Down
4 changes: 2 additions & 2 deletions backend/apps/webui/routers/auths.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def signin_oauth(request: Request, provider: str, form_data: SigninFormOau
user_email_domains.append(domain)
if provider == "github":
log.error(f"github provided email is: {this_email}")
if domain in ["gsa.gov"]:
if domain in ["gsa.gov", "census.gov"]:
email = this_email
user_has_permitted_domain = True
break
Expand Down Expand Up @@ -411,7 +411,7 @@ async def signup(request: Request, form_data: SignupForm):
names = names[0].split(".")
if names and len(names) > 1:
first_name = names[0]
last_name = names[1]
last_name = names[-1]
if first_name and last_name:
name = first_name.capitalize() + " " + last_name.capitalize()

Expand Down

0 comments on commit b75ad57

Please sign in to comment.