Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ client = OpenAI(
|
|
| 19 |
)
|
| 20 |
|
| 21 |
model = LiteLLMModel(
|
| 22 |
-
"openrouter/google/gemini-2.0-flash",
|
| 23 |
temperature=0.2,
|
| 24 |
api_key=os.getenv("OPENROUTER_API_KEY")
|
| 25 |
)
|
|
@@ -32,7 +32,7 @@ def analyze_petition(petition: str, best_practices: str) -> str:
|
|
| 32 |
best_practices: A string containing a list of best practices for creating efficient, appealing and call-to-action political petition.
|
| 33 |
"""
|
| 34 |
completion = client.chat.completions.create(
|
| 35 |
-
model="google/gemini-2.0-flash",
|
| 36 |
messages=[
|
| 37 |
{
|
| 38 |
"role": "user",
|
|
|
|
| 19 |
)
|
| 20 |
|
| 21 |
model = LiteLLMModel(
|
| 22 |
+
"openrouter/google/gemini-2.0-flash-001",
|
| 23 |
temperature=0.2,
|
| 24 |
api_key=os.getenv("OPENROUTER_API_KEY")
|
| 25 |
)
|
|
|
|
| 32 |
best_practices: A string containing a list of best practices for creating efficient, appealing and call-to-action political petition.
|
| 33 |
"""
|
| 34 |
completion = client.chat.completions.create(
|
| 35 |
+
model="google/gemini-2.0-flash-001",
|
| 36 |
messages=[
|
| 37 |
{
|
| 38 |
"role": "user",
|