Report: Not working

Exit code: 1. Reason: * Running on local URL: http://0.0.0.0:7860, with SSR :high_voltage: (experimental, to disable set `ssr_mode=False` in `launch()`) Traceback (most recent call last): File “/app/app.py”, line 155, in demo.launch( File “/usr/local/lib/python3.10/site-packages/gradio/blocks.py”, line 2807, in launch raise ValueError( ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

Container logs:

===== Application Startup at 2026-02-14 07:06:26 =====

* Running on local URL:  http://0.0.0.0:7860, with SSR ⚡ (experimental, to disable set `ssr_mode=False` in `launch()`)
Traceback (most recent call last):
  File "/app/app.py", line 155, in <module>
    demo.launch(
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2807, in launch
    raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
* Running on local URL:  http://0.0.0.0:7860, with SSR ⚡ (experimental, to disable set `ssr_mode=False` in `launch()`)
Traceback (most recent call last):
  File "/app/app.py", line 155, in <module>
    demo.launch(
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2807, in launch
    raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

Here: Anycoder - a Hugging Face Space by Gertie01

@John6666

1 Like

I committed PR, but unsure it works… https://huggingface.co/spaces/Gertie01/anycoder-1404a139/discussions/5

Exit code: 1. Reason: Traceback (most recent call last): File “/app/app.py”, line 102, in with gr.Blocks(theme=gr.themes.Soft(primary_hue=“indigo”)) as demo: ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.13/site-packages/gradio/blocks.py”, line 1071, in _init_ super()._init_(render=False, **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BlockContext._init_() got an unexpected keyword argument ‘theme’

Container logs:

===== Application Startup at 2026-04-05 20:22:09 =====

Traceback (most recent call last):
  File "/app/app.py", line 102, in <module>
    with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo")) as demo:
         ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gradio/blocks.py", line 1071, in __init__
    super().__init__(render=False, **kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BlockContext.__init__() got an unexpected keyword argument 'theme'
Traceback (most recent call last):
  File "/app/app.py", line 102, in <module>
    with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo")) as demo:
         ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gradio/blocks.py", line 1071, in __init__
    super().__init__(render=False, **kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BlockContext.__init__() got an unexpected keyword argument 'theme'

Anycoder 7d5a189e - a Hugging Face Space by Gertie2013

@John6666

1 Like

Maybe like this? https://huggingface.co/spaces/Gertie2013/anycoder-7d5a189e/discussions/1

I need your help pushing my Github codes to the Space repositories.

Push Gertie01/cuddly-palm-tree-boy to Cuddly Palm Tree Boy - a Hugging Face Space by Gertie2013

Push Gertie01/many-happy-returns-1 to Many Happy Returns 1 - a Hugging Face Space by Gertie2013

Push Gertie01/many-happy-returns-2 to Many Happy Returns 2 - a Hugging Face Space by Gertie2013

Push Gertie01/many-happy-returns-3 to Many Happy Returns 3 - a Hugging Face Space by Gertie2013

Push Gertie01/many-happy-returns-5 to Many Happy Returns 5 - a Hugging Face Space by Gertie2013

Push Gertie01/many-happy-returns-6 to Many Happy Returns 6 - a Hugging Face Space by Gertie2013

@John6666

Sorry. I’m not exactly an all-around coder—I’m just a hobbyist—so given my current skill level and limited free time, it’s a bit out of my league to pull that off… :downcast_face_with_sweat:

Do you know someone who can help?

Hmm… I don’t know anyone who’d be willing to do that for free.

If it were paid work, you could probably hire someone on LinkedIn…? I’m not very familiar with how things work overseas, though…

I think there are websites where you can hire part-time coders. We have them here in Japan.

Run git push --force \*\*\* main:main

remote: -------------------------------------------------------------------------

remote: Your push was rejected because it contains files larger than 10 MiB.

remote: Please use https://git-lfs.github.com/ to store large files.

remote: See also: https://hf.co/docs/hub/repositories-getting-started#terminal

remote:

remote: Offending files:

remote: - assets/demo.mov (ref: refs/heads/main)

remote: -------------------------------------------------------------------------

To https://huggingface.co/spaces/Gertie2013/cuddly-palm-tree-boy

! [remote rejected] main → main (pre-receive hook declined)

error: failed to push some refs to ‘https://huggingface.co/spaces/Gertie2013/cuddly-palm-tree-boy

Error: Process completed with exit code 1.

0s
0s

Here: Gertie01/cuddly-palm-tree-boy

@John6666

Job failed with exit code: 1. Reason: cache miss: [builder 4/4] RUN if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo “Lockfile not found.” && exit 1; fi cache miss: [builder 3/4] COPY . . cache miss: [runner 5/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ cache miss: [runner 3/6] RUN adduser --system --uid 1001 nextjs cache miss: [runner 6/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static cache miss: resolve image config for docker-image://docker.io/docker/dockerfile:1 cache miss: [runner 2/6] RUN addgroup --system --gid 1001 nodejs cache miss: [runner 4/6] COPY --from=builder /app/public ./public cache miss: docker-image://docker.io/docker/dockerfile:1@sha256:2780b5c3bab67f1f76c781860de469442999ed1a0d7992a5efdf2cffc0e3d769 {“total”:21,“completed”:16,“user_total”:16,“user_cached”:6,“user_completed”:11,“user_cacheable”:15,“from”:1,“miss”:9,“client_duration_ms”:12643}

Build logs:

===== Build Queued at 2026-04-08 00:22:07 / Commit SHA: e48e56a =====

--> FROM docker.io/library/node:22-alpine@sha256:4d64b49e6c891c8fc821007cb1cdc6c0db7773110ac2c34bf2e6960adef62ed3
DONE 0.0s

--> COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
CACHED

--> RUN   if [ -f yarn.lock ]; then yarn --frozen-lockfile;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile;   else echo "Lockfile not found." && exit 1;   fi
CACHED

--> WORKDIR /app
CACHED

--> RUN apk add --no-cache libc6-compat
CACHED

--> WORKDIR /app
CACHED

--> COPY --from=deps /app/node_modules ./node_modules
CACHED

--> Restoring cache
DONE 6.2s

--> COPY . .
DONE 0.0s

--> RUN   if [ -f yarn.lock ]; then yarn run build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo "Lockfile not found." && exit 1;   fi

> nextjs-gemini-2-0-pdf-structured-data@0.1.0 build
> next build

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

   ▲ Next.js 15.1.0
   - Experiments (use with caution):
     · turbo

   Creating an optimized production build ...
Failed to compile.

./app/api/image/route.ts
Module not found: Can't resolve '@google/genai'

https://nextjs.org/docs/messages/module-not-found


> Build failed because of webpack errors
npm notice
npm notice New major version of npm available! 10.9.7 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1
npm notice

--> ERROR: process "/bin/sh -c if [ -f yarn.lock ]; then yarn run build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo \"Lockfile not found.\" && exit 1;   fi" did not complete successfully: exit code: 1

Here: Image Generation & Editing - a Hugging Face Space by Gertie2013

@John6666

for now Gertie2013/image-generation-editing · Upload 3 files but no idea it works or not…

Job failed with exit code: 1. Reason: cache miss: [runner 3/6] RUN adduser --system --uid 1001 nextjs cache miss: [runner 2/6] RUN addgroup --system --gid 1001 nodejs cache miss: [builder 3/4] COPY . . cache miss: [runner 6/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static cache miss: [builder 4/4] RUN if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo “Lockfile not found.” && exit 1; fi && test -f /app/.next/standalone/server.js cache miss: [runner 5/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ cache miss: [runner 4/6] COPY --from=builder /app/public ./public cache miss: [deps 4/4] RUN if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; else echo “Lockfile not found.” && exit 1; fi cache miss: resolve image config for docker-image://docker.io/docker/dockerfile:1 cache miss: docker-image://docker.io/docker/dockerfile:1@sha256:2780b5c3bab67f1f76c781860de469442999ed1a0d7992a5efdf2cffc0e3d769 {“total”:21,“completed”:16,“user_total”:16,“user_cached”:5,“user_completed”:11,“user_cacheable”:15,“from”:1,“miss”:10,“client_duration_ms”:46934}

Build logs:

===== Build Queued at 2026-04-08 11:59:13 / Commit SHA: 256bf9d =====

--> FROM docker.io/library/node:22-alpine@sha256:4d64b49e6c891c8fc821007cb1cdc6c0db7773110ac2c34bf2e6960adef62ed3
DONE 0.0s

--> RUN apk add --no-cache libc6-compat
CACHED

--> WORKDIR /app
CACHED

--> COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
CACHED

--> Restoring cache
DONE 1.4s

--> RUN if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; else echo "Lockfile not found." && exit 1; fi
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 488 packages, and audited 489 packages in 31s

167 packages are looking for funding
  run `npm fund` for details

14 vulnerabilities (2 low, 4 moderate, 7 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues, run:
  npm audit fix --force

Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 10.9.7 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1
npm notice
DONE 32.7s

--> WORKDIR /app
CACHED

--> COPY --from=deps /app/node_modules ./node_modules
CACHED

--> Restoring cache
DONE 5.3s

--> COPY . .
DONE 0.0s

--> RUN if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo "Lockfile not found." && exit 1; fi && test -f /app/.next/standalone/server.js

> nextjs-gemini-2-0-pdf-structured-data@0.1.0 build
> next build

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

   ▲ Next.js 15.1.0
   - Experiments (use with caution):
     · turbo

   Creating an optimized production build ...
Failed to compile.

./app/api/image/route.ts
Module not found: Can't resolve '@google/genai'

https://nextjs.org/docs/messages/module-not-found


> Build failed because of webpack errors
npm notice
npm notice New major version of npm available! 10.9.7 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1
npm notice

--> ERROR: process "/bin/sh -c if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo \"Lockfile not found.\" && exit 1; fi && test -f /app/.next/standalone/server.js" did not complete successfully: exit code: 1

Here: Image Generation & Editing - a Hugging Face Space by Gertie2013

@John6666

Hmm… No idea but like this? Gertie2013/image-generation-editing · Upload 6 files

Job failed with exit code: 1. Reason: cache miss: docker-image://docker.io/docker/dockerfile:1@sha256:2780b5c3bab67f1f76c781860de469442999ed1a0d7992a5efdf2cffc0e3d769 cache miss: [runner 3/6] RUN adduser --system --uid 1001 nextjs cache miss: resolve image config for docker-image://docker.io/docker/dockerfile:1 cache miss: [runner 2/6] RUN addgroup --system --gid 1001 nodejs cache miss: [runner 6/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static cache miss: [runner 5/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ cache miss: [runner 4/6] COPY --from=builder /app/public ./public cache miss: [builder 4/4] RUN if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo “Lockfile not found.” && exit 1; fi && test -f /app/.next/standalone/server.js cache miss: [deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./ cache miss: [builder 3/4] COPY . . cache miss: [builder 2/4] COPY --from=deps /app/node_modules ./node_modules cache miss: [deps 4/4] RUN if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; else echo “Lockfile not found.” && exit 1; fi {“total”:21,“completed”:16,“user_total”:16,“user_cached”:3,“user_completed”:11,“user_cacheable”:15,“from”:1,“miss”:12,“client_duration_ms”:62631}

Build logs:

===== Build Queued at 2026-04-08 12:41:48 / Commit SHA: 2fe99d9 =====

--> FROM docker.io/library/node:22-alpine@sha256:4d64b49e6c891c8fc821007cb1cdc6c0db7773110ac2c34bf2e6960adef62ed3
DONE 0.0s

--> RUN apk add --no-cache libc6-compat
CACHED

--> WORKDIR /app
CACHED

--> Restoring cache
DONE 1.7s

--> COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
DONE 0.0s

--> RUN   if [ -f yarn.lock ]; then yarn --frozen-lockfile;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile;   else echo "Lockfile not found." && exit 1;   fi
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 511 packages, and audited 512 packages in 36s

171 packages are looking for funding
  run `npm fund` for details

15 vulnerabilities (2 low, 4 moderate, 8 high, 1 critical)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 10.9.7 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1
npm notice
DONE 37.5s

--> WORKDIR /app
CACHED

--> Restoring cache
DONE 0.2s

--> COPY --from=deps /app/node_modules ./node_modules
DONE 2.7s

--> COPY . .
DONE 0.2s

--> RUN   if [ -f yarn.lock ]; then yarn run build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo "Lockfile not found." && exit 1;   fi && test -f /app/.next/standalone/server.js

> nextjs-gemini-2-0-pdf-structured-data@0.1.0 build
> next build

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

   ▲ Next.js 15.2.4

   Creating an optimized production build ...
 ✓ Compiled successfully
   Linting and checking validity of types ...

Failed to compile.

./app/api/image/route.ts
3:23  Error: 'HistoryPart' is defined but never used.  @typescript-eslint/no-unused-vars

./components/ImageResultDisplay.tsx
60:9  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
93:27  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element

./components/ImageUpload.tsx
121:13  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules
npm notice
npm notice New major version of npm available! 10.9.7 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1
npm notice

--> ERROR: process "/bin/sh -c if [ -f yarn.lock ]; then yarn run build;   elif [ -f package-lock.json ]; then npm run build;   elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build;   else echo \"Lockfile not found.\" && exit 1;   fi && test -f /app/.next/standalone/server.js" did not complete successfully: exit code: 1

Here: Image Generation & Editing - a Hugging Face Space by Gertie2013

@John6666

for now, i sent PR again.

  1. {success: false, error: “Failed to generate image”,…}

    1. details: “got status: 404 Not Found. {\“error\”:{\“message\”:\“exception parsing response\”,\“code\”:404,\“status\”:\“Not Found\”}}”

    2. error: “Failed to generate image”

    3. success: false

Here: Image Generation & Editing - a Hugging Face Space by Gertie2013

@John6666

Gradio version does not exist

Base README.md template:

---
title: {{title}}
emoji: {{emoji}}
colorFrom: {{colorFrom}}
colorTo: {{colorTo}}
sdk: {{sdk}}
sdk_version: "{{sdkVersion}}"
{{#pythonVersion}}
python_version: "{{pythonVersion}}"
{{/pythonVersion}}
app_file: app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Here: Cuddly Palm Tree Boy - a Hugging Face Space by Gertie2013

@John6666

like this? Gertie2013/image-generation-editing · Upload route.ts

If you just show me the code, I won’t know what you’re trying to achieve with it, so it’s hard for me to fix it…

Also, it’s better if you try to fix errors yourself whenever possible. I can’t always be there to help…