mjolnir1122 commited on
Commit
d045339
·
verified ·
1 Parent(s): b2f6af3

Update groq_analysis.py

Browse files
Files changed (1) hide show
  1. groq_analysis.py +1 -1
groq_analysis.py CHANGED
@@ -5,7 +5,7 @@ from config import GROQ_API_KEY
5
  def analyze_hydrogen_data(data):
6
  prompt = f"Analyze the following hydrogen production dataset and provide insights: {data.to_string()}"
7
 
8
- headers = {"Authorization": f"Bearer {GROQ_API_KEY}", "Content-Type": "application/json"}
9
  payload = {"messages": [{"role": "user", "content": prompt}], "model": "llama3-70b-8192"}
10
 
11
  response = requests.post("https://api.groq.com/chat/completions", json=payload, headers=headers)
 
5
  def analyze_hydrogen_data(data):
6
  prompt = f"Analyze the following hydrogen production dataset and provide insights: {data.to_string()}"
7
 
8
+ headers = {"Authorization": f"Bearer {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}", "Content-Type": "application/json"}
9
  payload = {"messages": [{"role": "user", "content": prompt}], "model": "llama3-70b-8192"}
10
 
11
  response = requests.post("https://api.groq.com/chat/completions", json=payload, headers=headers)