Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ async def reroute_to_status():
|
|
| 34 |
|
| 35 |
OLLAMA_LIBRARY_URL = "https://ollama.com/library"
|
| 36 |
|
| 37 |
-
PLAN_ORDER = ["free", "light", "
|
| 38 |
TIER_CONFIG = {
|
| 39 |
"free": {
|
| 40 |
"name": "Free Tier",
|
|
@@ -58,7 +58,7 @@ TIER_CONFIG = {
|
|
| 58 |
"audioWeekly": 5,
|
| 59 |
},
|
| 60 |
},
|
| 61 |
-
"
|
| 62 |
"name": "InferencePort AI Core",
|
| 63 |
"url": "https://buy.stripe.com/test_bJe9AT2fg6vt23rgaq8bS01",
|
| 64 |
"price": "15.99",
|
|
@@ -302,8 +302,8 @@ def normalize_plan_key(plan_name: Optional[str]) -> str:
|
|
| 302 |
return "professional"
|
| 303 |
if "creator" in normalized:
|
| 304 |
return "creator"
|
| 305 |
-
if "
|
| 306 |
-
return "
|
| 307 |
if "light" in normalized:
|
| 308 |
return "light"
|
| 309 |
return "free"
|
|
|
|
| 34 |
|
| 35 |
OLLAMA_LIBRARY_URL = "https://ollama.com/library"
|
| 36 |
|
| 37 |
+
PLAN_ORDER = ["free", "light", "core", "creator", "professional"]
|
| 38 |
TIER_CONFIG = {
|
| 39 |
"free": {
|
| 40 |
"name": "Free Tier",
|
|
|
|
| 58 |
"audioWeekly": 5,
|
| 59 |
},
|
| 60 |
},
|
| 61 |
+
"core": {
|
| 62 |
"name": "InferencePort AI Core",
|
| 63 |
"url": "https://buy.stripe.com/test_bJe9AT2fg6vt23rgaq8bS01",
|
| 64 |
"price": "15.99",
|
|
|
|
| 302 |
return "professional"
|
| 303 |
if "creator" in normalized:
|
| 304 |
return "creator"
|
| 305 |
+
if "core" in normalized:
|
| 306 |
+
return "core"
|
| 307 |
if "light" in normalized:
|
| 308 |
return "light"
|
| 309 |
return "free"
|