country check for muse spark in free
This commit is contained in:
@@ -71,7 +71,7 @@ export function countryFromRequest(request: Request | undefined) {
|
||||
|
||||
export function isModelCountryRestricted(model: string, country: string | undefined) {
|
||||
return (
|
||||
model === "muse-spark-1.2-contributor" &&
|
||||
["muse-spark-1.2-contributor", "muse-spark-1.2-contributor-free"].includes(model) &&
|
||||
country !== undefined &&
|
||||
MUSE_SPARK_BLOCKED_COUNTRIES.has(country.toUpperCase())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user