Invicto69 commited on
Commit
89b8387
·
verified ·
1 Parent(s): 4042aa1

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (2) hide show
  1. requirements.txt +2 -1
  2. utils.py +0 -2
requirements.txt CHANGED
@@ -2,4 +2,5 @@ groq
2
  langchain
3
  langchain[groq]
4
  streamlit
5
- langchain_community
 
 
2
  langchain
3
  langchain[groq]
4
  streamlit
5
+ langchain_community
6
+ psycopg2
utils.py CHANGED
@@ -26,7 +26,6 @@ def validate_api_key(api_key:str) -> bool:
26
  get_all_groq_model(api_key=api_key)
27
  return True
28
  except Exception as e:
29
- print(e)
30
  return False
31
 
32
  def validate_uri(uri:str) -> bool:
@@ -34,7 +33,6 @@ def validate_uri(uri:str) -> bool:
34
  SQLDatabase.from_uri(uri)
35
  return True
36
  except Exception as e:
37
- print(e)
38
  return False
39
 
40
  def get_info(uri:str) -> dict[str, str] | None:
 
26
  get_all_groq_model(api_key=api_key)
27
  return True
28
  except Exception as e:
 
29
  return False
30
 
31
  def validate_uri(uri:str) -> bool:
 
33
  SQLDatabase.from_uri(uri)
34
  return True
35
  except Exception as e:
 
36
  return False
37
 
38
  def get_info(uri:str) -> dict[str, str] | None: