Skip to content

Commit

Permalink
feat: Update trending models
Browse files Browse the repository at this point in the history
  • Loading branch information
huuquyet committed Aug 30, 2024
1 parent cb8c46b commit 8aff43c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ This action generate awesome wallpapers using HuggingFace Inference API (serverl
<div align="center">
<img alt="Awesome Wallpapers" src="./assets/wallpaper.jpg">

<!-- START_CAPTION -->
*A pristine, coral reef teeming with colorful tropical fish beneath the azure ocean surface* by [stabilityai/stable-diffusion-2-1](https://hf.co/stabilityai/stable-diffusion-2-1)
<!-- START_CAPTION -->
*A pristine, coral reef teeming with colorful tropical fish beneath the azure ocean surface* by [stabilityai/stable-diffusion-2-1](https://hf.co/stabilityai/stable-diffusion-2-1)
<!-- END_CAPTION -->
</div>

Expand All @@ -27,12 +27,12 @@ Then add to the [secrets for the repository](https://docs.github.com/en/actions/

## List of models

- [runwayml/stable-diffusion-v1-5](https://hf.co/runwayml/stable-diffusion-v1-5)
- [CompVis/stable-diffusion-v1-4](https://hf.co/CompVis/stable-diffusion-v1-4)
- [stabilityai/stable-diffusion-xl-base-1.0](https://hf.co/stabilityai/stable-diffusion-xl-base-1.0)
- [stabilityai/stable-diffusion-2-1](https://hf.co/stabilityai/stable-diffusion-2-1)
- [prompthero/openjourney](https://hf.co/prompthero/openjourney)
- [prompthero/openjourney-v4](https://hf.co/prompthero/openjourney-v4)
- [black-forest-labs/FLUX.1-dev](https://hf.co/black-forest-labs/FLUX.1-dev)
- [black-forest-labs/FLUX.1-schnell](https://hf.co/black-forest-labs/FLUX.1-schnell)
- [ByteDance/Hyper-SD](https://hf.co/ByteDance/Hyper-SD)
- [latent-consistency/lcm-lora-sdxl](https://hf.co/latent-consistency/lcm-lora-sdxl)
- [Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro](https://hf.co/Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro)
- [stabilityai/stable-diffusion-3-medium-diffusers](https://hf.co/stabilityai/stable-diffusion-3-medium-diffusers)

## Outputs

Expand Down
Binary file modified bun.lockb
Binary file not shown.
12 changes: 6 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26839,12 +26839,12 @@ const prompts_namespaceObject = JSON.parse('["A pristine, turquoise glacier lake

// The list of text-to-image models that support inference API
const MODELS = [
'runwayml/stable-diffusion-v1-5',
'CompVis/stable-diffusion-v1-4',
'stabilityai/stable-diffusion-xl-base-1.0',
'stabilityai/stable-diffusion-2-1',
'prompthero/openjourney',
'prompthero/openjourney-v4',
'black-forest-labs/FLUX.1-dev',
'black-forest-labs/FLUX.1-schnell',
'ByteDance/Hyper-SD',
'latent-consistency/lcm-lora-sdxl',
'Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro',
'stabilityai/stable-diffusion-3-medium-diffusers',
];
// The patterns to set the caption of image
const START_CAPTION = '<!-- START_CAPTION -->';
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@actions/core": "^1.10.1"
},
"devDependencies": {
"@types/bun": "^1.1.6",
"@types/bun": "^1.1.8",
"@vercel/ncc": "^0.38.1",
"typescript": "^5.5.4"
},
Expand Down
12 changes: 6 additions & 6 deletions src/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
API_TOKEN = getenv("HF_API_TOKEN")
# The list of text-to-image models that support inference API
MODELS = [
"runwayml/stable-diffusion-v1-5",
"CompVis/stable-diffusion-v1-4",
"stabilityai/stable-diffusion-xl-base-1.0",
"stabilityai/stable-diffusion-2-1",
"prompthero/openjourney",
"prompthero/openjourney-v4",
'black-forest-labs/FLUX.1-dev',
'black-forest-labs/FLUX.1-schnell',
'ByteDance/Hyper-SD',
'latent-consistency/lcm-lora-sdxl',
'Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro',
'stabilityai/stable-diffusion-3-medium-diffusers',
]

random_model = random.choice(MODELS)
Expand Down
12 changes: 6 additions & 6 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { default as prompts } from '../assets/prompts.json'

// The list of text-to-image models that support inference API
const MODELS: string[] = [
'runwayml/stable-diffusion-v1-5',
'CompVis/stable-diffusion-v1-4',
'stabilityai/stable-diffusion-xl-base-1.0',
'stabilityai/stable-diffusion-2-1',
'prompthero/openjourney',
'prompthero/openjourney-v4',
'black-forest-labs/FLUX.1-dev',
'black-forest-labs/FLUX.1-schnell',
'ByteDance/Hyper-SD',
'latent-consistency/lcm-lora-sdxl',
'Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro',
'stabilityai/stable-diffusion-3-medium-diffusers',
]

// The patterns to set the caption of image
Expand Down

0 comments on commit 8aff43c

Please sign in to comment.