Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import requests
|
|
| 5 |
# Groq API configuration
|
| 6 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 7 |
GROQ_API_URL = "https://api.groq.com/openai/v1/chat/completions"
|
| 8 |
-
MODEL = "
|
| 9 |
|
| 10 |
def get_flood_risk(location, water_level, rainfall):
|
| 11 |
prompt = f"""
|
|
|
|
| 5 |
# Groq API configuration
|
| 6 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 7 |
GROQ_API_URL = "https://api.groq.com/openai/v1/chat/completions"
|
| 8 |
+
MODEL = "llama3-70b-8192" # Safe, currently supported model from Groq
|
| 9 |
|
| 10 |
def get_flood_risk(location, water_level, rainfall):
|
| 11 |
prompt = f"""
|