beyonddata commited on
Commit
e412e0d
1 Parent(s): de99c06

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +2 -8
  2. main.py +12 -0
  3. requirements.txt +6 -0
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
- title: Difff
3
- emoji: 👁
4
- colorFrom: red
5
- colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 3.50.2
8
- app_file: app.py
9
- pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: difff
3
+ app_file: main.py
 
 
4
  sdk: gradio
5
  sdk_version: 3.50.2
 
 
6
  ---
 
 
main.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ import gradio as gr
3
+ import torch
4
+ from diffusers import DiffusionPipeline
5
+ import uvicorn
6
+
7
+ description = "Image generation with GPT-2"
8
+ title = "IMAGE GENERATION MACHINE"
9
+
10
+ interface = gr.Interface.load('ControlNet-1-1-preview/control_v11p_sd15_lineart', 'huggingface')
11
+
12
+ interface.launch(share = True)
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ torch==2.1.0
4
+ diffusers
5
+ transformers
6
+ gradio