mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
grok image gen works, but frontend state is weird
This commit is contained in:
1 parent
c41eb800b3
commit
65a10bfd7e
2 files changed
+18
-1
No files matched your search
+3
-1
@@ -200,11 +200,13 @@ async fn upload_images_to_storyteller(
|
||||
// The first upload should produce a batch token that we can reuse.
|
||||
let batch_token = BatchGenerationToken::generate();
|
||||
|
||||
for image in images.images.iter() {
|
||||
for (i, image) in images.images.iter().enumerate() {
|
||||
loop {
|
||||
let url = image.url.to_string();
|
||||
let file = download_url_to_temp_dir(&url, app_data_root).await?;
|
||||
|
||||
info!("Uploading image {} of {} ...", i, images.images.len());
|
||||
|
||||
let result = upload_image_media_file_from_file(UploadImageFromFileArgs {
|
||||
api_host: &app_env_configs.storyteller_host,
|
||||
maybe_creds: Some(&storyteller_creds),
|
||||
|
||||
@@ -3,6 +3,21 @@ import { ModelCreator } from "../classes/metadata/ModelCreator.js";
|
||||
import { ModelTag } from "../classes/metadata/ModelTag.js";
|
||||
|
||||
export const IMAGE_MODELS: ImageModel[] = [
|
||||
new ImageModel({
|
||||
id: "grok_image",
|
||||
tauriId: "grok_image",
|
||||
fullName: "Grok",
|
||||
category: "image",
|
||||
creator: ModelCreator.Grok,
|
||||
selectorName: "Grok",
|
||||
selectorDescription: "Fast af",
|
||||
selectorBadges: ["10 sec."],
|
||||
maxGenerationCount: 4,
|
||||
defaultGenerationCount: 4,
|
||||
canUseImagePrompt: false,
|
||||
maxImagePromptCount: 6,
|
||||
progressBarTime: 10000,
|
||||
}),
|
||||
new ImageModel({
|
||||
id: "midjourney",
|
||||
tauriId: "midjourney",
|
||||
|
||||
Reference in new issue
Block a user