jbilcke-hf HF staff commited on
Commit
66e6b3f
1 Parent(s): 6ffa809
src/app/interface/generate/index.tsx CHANGED
@@ -369,7 +369,7 @@ export function Generate() {
369
  disabled={isLocked}
370
  onClick={handleSubmit}
371
  >
372
- {isLocked ? `Please wait..` : "Generate"}
373
  </animated.button>
374
  </div>
375
  </div>
@@ -444,7 +444,7 @@ export function Generate() {
444
  <h3 className={cn(
445
  headingFont.className,
446
  "text-4xl text-sky-600 mb-4"
447
- )}>{communityRoll.length ? "Community Roll:" : "Loading community toll.."}</h3>
448
  </div>
449
  <div className="grid grid-cols-1 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-2">
450
  {communityRoll.map(post =>
 
369
  disabled={isLocked}
370
  onClick={handleSubmit}
371
  >
372
+ {isLocked ? `Loading..` : "Generate"}
373
  </animated.button>
374
  </div>
375
  </div>
 
444
  <h3 className={cn(
445
  headingFont.className,
446
  "text-4xl text-sky-600 mb-4"
447
+ )}>{communityRoll.length ? "Community creations:" : "Loading community roll.."}</h3>
448
  </div>
449
  <div className="grid grid-cols-1 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-2">
450
  {communityRoll.map(post =>
src/app/server/actions/community.ts CHANGED
@@ -85,7 +85,7 @@ export async function postToCommunity({
85
  }
86
 
87
  const response = (await res.json()) as CreatePostResponse
88
- console.log("response:", response)
89
  return response.post
90
  } catch (err) {
91
  const error = `failed to post to community: ${err}`
 
85
  }
86
 
87
  const response = (await res.json()) as CreatePostResponse
88
+ // console.log("response:", response)
89
  return response.post
90
  } catch (err) {
91
  const error = `failed to post to community: ${err}`
src/app/server/actions/models.ts CHANGED
@@ -17,6 +17,34 @@ export async function getSDXLModels(): Promise<SDXLModel[]> {
17
 
18
  const content = await res.json() as SDXLModel[]
19
 
 
20
  // we only return compatible models
21
- return content.filter(model => model.is_compatible)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  }
 
17
 
18
  const content = await res.json() as SDXLModel[]
19
 
20
+
21
  // we only return compatible models
22
+ const compatibleModels = content.filter(model => model.is_compatible)
23
+
24
+ const hardcoded: SDXLModel[] = [
25
+ {
26
+ "image": "https://pbxt.replicate.delivery/xnswkD3hpl5pMRCrzlwCq5wKA4HMkrJqfwAwd8xQhWndVG3IA/out-0.png",
27
+ "title": "sdxl-cinematic-2",
28
+ "repo": "jbilcke-hf/sdxl-cinematic-2",
29
+ "trigger_word": "cinematic-2",
30
+ "weights": "pytorch_lora_weights.safetensors",
31
+ "is_compatible": true,
32
+ "likes": 0,
33
+ "downloads": 0
34
+ },
35
+ /*
36
+ {
37
+ "image": "https://pbxt.replicate.delivery/xnswkD3hpl5pMRCrzlwCq5wKA4HMkrJqfwAwd8xQhWndVG3IA/out-0.png",
38
+ "title": "cinematic-2",
39
+ "repo": "jbilcke-hf/cinematic-2",
40
+ "trigger_word": "cinematic-2",
41
+ "weights": "pytorch_lora_weights.safetensors",
42
+ "is_compatible": true,
43
+ "likes": 0,
44
+ "downloads": 0
45
+ },
46
+ */
47
+ ]
48
+
49
+ return hardcoded.concat(compatibleModels)
50
  }