https://huggingface.co/spaces/Fancellu/Kokoro-TTS-Zero-CPU
To run from docker
docker run -it -p 7860:7860 --platform=linux/amd64 registry.hf.space/fancellu-kokoro-tts-zero-cpu:latest python app.py
| import gradio as gr | |
| import numpy as np | |
| import spaces | |
| import torch | |
| import random | |
| from PIL import Image | |
| from diffusers import FluxKontextPipeline | |
| from diffusers.utils import load_image |
| import pandas as pd | |
| import plotly.graph_objects as go | |
| import gradio as gr | |
| from io import StringIO | |
| def create_interactive_bitcoin_chart(csv_text=None): | |
| """Create interactive Bitcoin volume chart from CSV data""" | |
| try: | |
| if csv_text and csv_text.strip(): |
https://huggingface.co/spaces/Fancellu/Kokoro-TTS-Zero-CPU
To run from docker
docker run -it -p 7860:7860 --platform=linux/amd64 registry.hf.space/fancellu-kokoro-tts-zero-cpu:latest python app.py
https://huggingface.co/spaces/Fancellu/bark-pytorch2.6-compatible
This solves the PyTorch 2.6 breaking change where weights_only=True became the default, causing issues with older model files that contain non-tensor objects, with monkey patch patched_load()
Updated to Python 3.11, latest Gradio, and requirements.txt
If you have a GPU, you can run from Docker Desktop directly
docker run -it -p 7860:7860 --gpus=all --platform=linux/amd64 registry.hf.space/fancellu-bark-pytorch2-6-compatible:latest python app.py
| import cats._ | |
| import cats.data._ | |
| import cats.syntax._ | |
| import cats.implicits._ | |
| object CatsAlign extends App { | |
| val alOption=Align[Option] | |
| val iorO: Option[Ior[Int, Int]] =alOption.align(Option(1), Option(2)) |
| license: gpl-3.0 | |
| height: 600 |
| import java.util | |
| import org.apache.kafka.clients.consumer.KafkaConsumer | |
| import scala.collection.JavaConverters._ | |
| object ConsumerExample extends App { | |
| import java.util.Properties |
| import scala.util.Random | |
| // Simple example of an IO effect Monad, no Cats | |
| object MyIO extends App{ | |
| // IO encapsulates a side effecting operation | |
| final class IO[A](val run: () => A) { | |
| def map[B](f: A => B): IO[B] = IO(f(run())) |
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "sync" | |
| "time" | |
| "unsafe" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func greet(st string, done chan bool) { | |
| fmt.Println(st) | |
| done <- true |