mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
de-vendor
This commit is contained in:
1 parent
038e1c1895
commit
22e59eb683
7 files changed
-205
No files matched your search
@@ -1944,20 +1944,6 @@ pub mod sdxl_controlnet_union;
|
||||
)))
|
||||
)]
|
||||
pub mod skyreels_i2v;
|
||||
#[cfg(any(
|
||||
feature = "endpoints",
|
||||
feature = "endpoints_fal-ai",
|
||||
feature = "endpoints_fal-ai_sora"
|
||||
))]
|
||||
#[cfg_attr(
|
||||
docsrs,
|
||||
doc(cfg(any(
|
||||
feature = "endpoints",
|
||||
feature = "endpoints_fal-ai",
|
||||
feature = "endpoints_fal-ai_sora"
|
||||
)))
|
||||
)]
|
||||
pub mod sora;
|
||||
#[cfg(any(
|
||||
feature = "endpoints",
|
||||
feature = "endpoints_fal-ai",
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
pub mod sora2;
|
||||
@@ -1,4 +0,0 @@
|
||||
pub mod sora_2_image_to_video;
|
||||
pub mod sora_2_pro_image_to_video;
|
||||
pub mod sora_2_pro_text_to_video;
|
||||
pub mod sora_2_text_to_video;
|
||||
-48
@@ -1,48 +0,0 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct Sora2ImageToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Starting frame
|
||||
pub image_url: String,
|
||||
|
||||
/// Possible enum values: auto, 720p
|
||||
/// Default value auto
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub resolution: Option<String>,
|
||||
|
||||
/// Possible enum values: auto, 9:16, 16:9
|
||||
/// Default value "auto"
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub aspect_ratio: Option<String>,
|
||||
|
||||
/// Duration in seconds
|
||||
/// Possible enum values: 4, 8, 12
|
||||
/// Default value 4
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration: Option<u8>,
|
||||
|
||||
/// Whether to delete the video after generation for privacy reasons.
|
||||
/// If True, the video cannot be used for remixing and will be permanently deleted.
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub delete_video: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Sora2ImageToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn sora_2_image_to_video(
|
||||
params: Sora2ImageToVideoInput,
|
||||
) -> FalRequest<Sora2ImageToVideoInput, Sora2ImageToVideoOutput> {
|
||||
FalRequest::new("fal-ai/sora-2/image-to-video", params)
|
||||
}
|
||||
-48
@@ -1,48 +0,0 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct Sora2ProImageToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Starting frame
|
||||
pub image_url: String,
|
||||
|
||||
/// Possible enum values: auto, 720p, 1080p
|
||||
/// Default value auto
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub resolution: Option<String>,
|
||||
|
||||
/// Possible enum values: auto, 9:16, 16:9
|
||||
/// Default value "auto"
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub aspect_ratio: Option<String>,
|
||||
|
||||
/// Duration in seconds
|
||||
/// Possible enum values: 4, 8, 12
|
||||
/// Default value 4
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration: Option<u8>,
|
||||
|
||||
/// Whether to delete the video after generation for privacy reasons.
|
||||
/// If True, the video cannot be used for remixing and will be permanently deleted.
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub delete_video: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Sora2ProImageToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn sora_2_pro_image_to_video(
|
||||
params: Sora2ProImageToVideoInput,
|
||||
) -> FalRequest<Sora2ProImageToVideoInput, Sora2ProImageToVideoOutput> {
|
||||
FalRequest::new("fal-ai/sora-2/image-to-video/pro", params)
|
||||
}
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct Sora2ProTextToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Possible enum values: auto, 720p, 1080p
|
||||
/// Default value auto
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub resolution: Option<String>,
|
||||
|
||||
/// Possible enum values: auto, 9:16, 16:9
|
||||
/// Default value "auto"
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub aspect_ratio: Option<String>,
|
||||
|
||||
/// Duration in seconds
|
||||
/// Possible enum values: 4, 8, 12
|
||||
/// Default value 4
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration: Option<u8>,
|
||||
|
||||
/// Whether to delete the video after generation for privacy reasons.
|
||||
/// If True, the video cannot be used for remixing and will be permanently deleted.
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub delete_video: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Sora2ProTextToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn sora_2_pro_text_to_video(
|
||||
params: Sora2ProTextToVideoInput,
|
||||
) -> FalRequest<Sora2ProTextToVideoInput, Sora2ProTextToVideoOutput> {
|
||||
FalRequest::new("fal-ai/sora-2/text-to-video/pro", params)
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct Sora2TextToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Possible enum values: 720p
|
||||
/// Default value 720p
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub resolution: Option<String>,
|
||||
|
||||
/// Possible enum values: auto, 9:16, 16:9
|
||||
/// Default value "auto"
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub aspect_ratio: Option<String>,
|
||||
|
||||
/// Duration in seconds
|
||||
/// Possible enum values: 4, 8, 12
|
||||
/// Default value 4
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration: Option<u8>,
|
||||
|
||||
/// Whether to delete the video after generation for privacy reasons.
|
||||
/// If True, the video cannot be used for remixing and will be permanently deleted.
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub delete_video: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Sora2TextToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn sora_2_text_to_video(
|
||||
params: Sora2TextToVideoInput,
|
||||
) -> FalRequest<Sora2TextToVideoInput, Sora2TextToVideoOutput> {
|
||||
FalRequest::new("fal-ai/sora-2/text-to-video", params)
|
||||
}
|
||||
Reference in new issue
Block a user