import os import random import uuid import json import gradio as gr import numpy as np from PIL import Image import spaces import torch from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler # Load the HTML content html_file_url = "https://prithivmlmods-hamster-static.static.hf.space/index.html" html_content = f'