blesspearl commited on
Commit
a9921fb
·
verified ·
1 Parent(s): 1a282bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,6 +35,7 @@ def chat_with_groq(client:groq.Groq,
35
  """
36
  completion = client.chat.completions.create(
37
  model = model,
 
38
  messages = [
39
  {
40
  "role":"user",
@@ -181,7 +182,7 @@ def identify_column_datatypes_to_SQL_DEF(df: pd.DataFrame,
181
  column_types.append(f"{column} - VARCHAR(255)")
182
 
183
  column_datatypes= "\n".join(element for element in column_types)
184
- client = groq.Groq(api_key=api_key)
185
  full_prompt = """
186
  You are a Database Query Advisor. Your task is to provide descriptions for given columns and their datatypes.
187
 
 
35
  """
36
  completion = client.chat.completions.create(
37
  model = model,
38
+ temperature = 0,
39
  messages = [
40
  {
41
  "role":"user",
 
182
  column_types.append(f"{column} - VARCHAR(255)")
183
 
184
  column_datatypes= "\n".join(element for element in column_types)
185
+ client = groq.Groq(api_key=api_key,)
186
  full_prompt = """
187
  You are a Database Query Advisor. Your task is to provide descriptions for given columns and their datatypes.
188