jbilcke-hf HF staff commited on
Commit
c65c1bb
1 Parent(s): 855183b

seems to be in order

Browse files
src/app/engine/render.ts CHANGED
@@ -35,8 +35,8 @@ export async function newRender({
35
  height: number
36
  withCache: boolean
37
  }) {
38
- throw new Error("Planned maintenance, please check: https://huggingface.co/spaces/jbilcke-hf/ai-comic-factory/discussions/339")
39
-
40
  if (!prompt) {
41
  const error = `cannot call the rendering API without a prompt, aborting..`
42
  console.error(error)
 
35
  height: number
36
  withCache: boolean
37
  }) {
38
+ // throw new Error("Planned maintenance")
39
+
40
  if (!prompt) {
41
  const error = `cannot call the rendering API without a prompt, aborting..`
42
  console.error(error)
src/app/interface/maintenance/index.tsx ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { fonts } from "@/lib/fonts"
2
+ import { cn } from "@/lib/utils"
3
+
4
+ export function Maintenance() {
5
+ return (
6
+ <div className="z-20 fixed inset-0 w-screen h-screen bg-white text-stone-800 flex flex-col items-center justify-center">
7
+ <div className={cn(
8
+ fonts.actionman.className,
9
+ "text-center"
10
+ )}>
11
+ <p className="text-4xl">🚧 Maintenance in progress 🚧</p>
12
+ <p className="text-3xl mt-12 mb-8">See the <a
13
+ href="https://huggingface.co/spaces/jbilcke-hf/ai-comic-factory/discussions/339"
14
+ className="underline text-yellow-500"
15
+ >announcement here</a> <img src="/quick-and-dirty-emoji.png" className="inline w-10 h-10"></img></p>
16
+ <p className="text-2xl">This shouldn&apos;t last long, so stay tuned!</p>
17
+ </div>
18
+ </div>
19
+ )
20
+ }
src/app/page.tsx CHANGED
@@ -5,8 +5,7 @@ import Head from "next/head"
5
  import Main from "./main"
6
  import { TooltipProvider } from "@/components/ui/tooltip"
7
  import Script from "next/script"
8
- import { cn } from "@/lib/utils"
9
- import { fonts } from "@/lib/fonts"
10
 
11
  // https://nextjs.org/docs/pages/building-your-application/optimizing/fonts
12
 
@@ -24,21 +23,9 @@ export default async function IndexPage({ params: { ownerId } }: { params: { own
24
  `}>
25
  <TooltipProvider delayDuration={100}>
26
 
27
- {/*<Main />*/}
28
-
29
- <div className="z-20 fixed inset-0 w-screen h-screen bg-white text-stone-800 flex flex-col items-center justify-center">
30
- <div className={cn(
31
- fonts.actionman.className,
32
- "text-center"
33
- )}>
34
- <p className="text-4xl">🚧 Maintenance in progress 🚧</p>
35
- <p className="text-3xl mt-12 mb-8">See the <a
36
- href="https://huggingface.co/spaces/jbilcke-hf/ai-comic-factory/discussions/339"
37
- className="underline text-yellow-500"
38
- >announcement here</a> <img src="/quick-and-dirty-emoji.png" className="inline w-10 h-10"></img></p>
39
- <p className="text-2xl">This shouldn&apos;t last long, so stay tuned!</p>
40
- </div>
41
- </div>
42
  </TooltipProvider>
43
  <Script src="https://www.googletagmanager.com/gtag/js?id=GTM-WH4MGSHS" />
44
  <Script id="google-analytics">
 
5
  import Main from "./main"
6
  import { TooltipProvider } from "@/components/ui/tooltip"
7
  import Script from "next/script"
8
+ // import { Maintenance } from "./interface/maintenance"
 
9
 
10
  // https://nextjs.org/docs/pages/building-your-application/optimizing/fonts
11
 
 
23
  `}>
24
  <TooltipProvider delayDuration={100}>
25
 
26
+ <Main />
27
+ {/* <Maintenance /> */}
28
+
 
 
 
 
 
 
 
 
 
 
 
 
29
  </TooltipProvider>
30
  <Script src="https://www.googletagmanager.com/gtag/js?id=GTM-WH4MGSHS" />
31
  <Script id="google-analytics">
src/app/queries/getStory.ts CHANGED
@@ -15,7 +15,7 @@ export const getStory = async ({
15
  preset: Preset;
16
  prompt: string;
17
  }): Promise<LLMResponse> => {
18
- throw new Error("Planned maintenance, please check: https://huggingface.co/spaces/jbilcke-hf/ai-comic-factory/discussions/339")
19
 
20
  // In case you need to quickly debug the RENDERING engine you can uncomment this:
21
  // return mockLLMResponse
 
15
  preset: Preset;
16
  prompt: string;
17
  }): Promise<LLMResponse> => {
18
+ // throw new Error("Planned maintenance")
19
 
20
  // In case you need to quickly debug the RENDERING engine you can uncomment this:
21
  // return mockLLMResponse