Spaces:
Sleeping
Sleeping
Update groq_analysis.py
Browse files- 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 {
|
| 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)
|