Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ if not groq_api_key:
|
|
| 24 |
raise ValueError("GROQ_API_KEY environment variable not set!")
|
| 25 |
|
| 26 |
client = Groq(api_key=groq_api_key)
|
| 27 |
-
MODEL_NAME = "
|
| 28 |
|
| 29 |
# Global storage
|
| 30 |
sections = {}
|
|
@@ -132,7 +132,7 @@ Generate a structured scientific summary:
|
|
| 132 |
|
| 133 |
Section Title: {section_title}
|
| 134 |
Section Content:
|
| 135 |
-
{content[:2500]}
|
| 136 |
"""
|
| 137 |
|
| 138 |
try:
|
|
|
|
| 24 |
raise ValueError("GROQ_API_KEY environment variable not set!")
|
| 25 |
|
| 26 |
client = Groq(api_key=groq_api_key)
|
| 27 |
+
MODEL_NAME = "llama-3.3-70b-versatile" # Use exactly this model
|
| 28 |
|
| 29 |
# Global storage
|
| 30 |
sections = {}
|
|
|
|
| 132 |
|
| 133 |
Section Title: {section_title}
|
| 134 |
Section Content:
|
| 135 |
+
{content[:2500]} # truncate to avoid exceeding model context
|
| 136 |
"""
|
| 137 |
|
| 138 |
try:
|