Spaces:
Running
on
Zero
Running
on
Zero
vinesmsuic
commited on
Commit
•
06726d0
1
Parent(s):
04e7b43
Update model/models/fal_api_models.py
Browse files
model/models/fal_api_models.py
CHANGED
@@ -7,7 +7,7 @@ import base64
|
|
7 |
|
8 |
FAL_MODEl_NAME_MAP = {"SDXL": "fast-sdxl", "SDXLTurbo": "fast-turbo-diffusion", "SDXLLightning": "fast-lightning-sdxl",
|
9 |
"LCM(v1.5/XL)": "fast-lcm-diffusion", "PixArtSigma": "pixart-sigma", "StableCascade": "stable-cascade",
|
10 |
-
"AuraFlow": "aura-flow", "FLUX1schnell": "flux/schnell", "FLUX1dev": "flux/dev", "T2VTurbo": "t2v-turbo"
|
11 |
|
12 |
class FalModel():
|
13 |
def __init__(self, model_name, model_type):
|
@@ -62,6 +62,8 @@ class FalModel():
|
|
62 |
fal_model_name = 'fast-animatediff/turbo/text-to-video'
|
63 |
elif self.model_name == 'StableVideoDiffusion':
|
64 |
fal_model_name = 'fast-svd/text-to-video'
|
|
|
|
|
65 |
else:
|
66 |
raise NotImplementedError(f"text2video model of {self.model_name} in fal is not implemented yet")
|
67 |
handler = fal_client.submit(
|
|
|
7 |
|
8 |
FAL_MODEl_NAME_MAP = {"SDXL": "fast-sdxl", "SDXLTurbo": "fast-turbo-diffusion", "SDXLLightning": "fast-lightning-sdxl",
|
9 |
"LCM(v1.5/XL)": "fast-lcm-diffusion", "PixArtSigma": "pixart-sigma", "StableCascade": "stable-cascade",
|
10 |
+
"AuraFlow": "aura-flow", "FLUX1schnell": "flux/schnell", "FLUX1dev": "flux/dev", "T2VTurbo": "t2v-turbo"}
|
11 |
|
12 |
class FalModel():
|
13 |
def __init__(self, model_name, model_type):
|
|
|
62 |
fal_model_name = 'fast-animatediff/turbo/text-to-video'
|
63 |
elif self.model_name == 'StableVideoDiffusion':
|
64 |
fal_model_name = 'fast-svd/text-to-video'
|
65 |
+
elif self.model_name == 'CogVideoX':
|
66 |
+
fal_model_name = 'cogvideox-5b'
|
67 |
else:
|
68 |
raise NotImplementedError(f"text2video model of {self.model_name} in fal is not implemented yet")
|
69 |
handler = fal_client.submit(
|