difff / main.py
beyonddata's picture
Upload folder using huggingface_hub
e412e0d
raw
history blame contribute delete
325 Bytes
from fastapi import FastAPI
import gradio as gr
import torch
from diffusers import DiffusionPipeline
import uvicorn
description = "Image generation with GPT-2"
title = "IMAGE GENERATION MACHINE"
interface = gr.Interface.load('ControlNet-1-1-preview/control_v11p_sd15_lineart', 'huggingface')
interface.launch(share = True)