Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,14 +6,6 @@ from PIL import Image
|
|
| 6 |
import torchvision.transforms as transforms
|
| 7 |
import os # 📁 For file operations
|
| 8 |
|
| 9 |
-
import gradio as gr
|
| 10 |
-
import os
|
| 11 |
-
|
| 12 |
-
# IMPORT HF_TOKEN
|
| 13 |
-
hf_token = os.environ['line_draw']
|
| 14 |
-
|
| 15 |
-
# PROVIDE YOUR ACCESS TOKEN AS AN ARGUMENT TO THE hf_token PARAMETER
|
| 16 |
-
gr.load("models/chenyingxu/image2linedraw", hf_token=hf_token).launch()
|
| 17 |
|
| 18 |
# 🧠 Neural network layers
|
| 19 |
norm_layer = nn.InstanceNorm2d
|
|
|
|
| 6 |
import torchvision.transforms as transforms
|
| 7 |
import os # 📁 For file operations
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# 🧠 Neural network layers
|
| 11 |
norm_layer = nn.InstanceNorm2d
|