Spaces:
Running
on
Zero
Running
on
Zero
Unsloth needs a gpu
Browse files
app.py
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
#!/usr/bin/env python3
|
2 |
# svg_compare_gradio.py
|
3 |
# ------------------------------------------------------------
|
|
|
4 |
import re, os, torch, cairosvg, lpips, clip, gradio as gr
|
5 |
from io import BytesIO
|
6 |
from pathlib import Path
|
7 |
from PIL import Image
|
8 |
from transformers import BitsAndBytesConfig, AutoTokenizer
|
9 |
import gradio as gr
|
10 |
-
|
11 |
|
12 |
# ---------- paths YOU may want to edit ----------------------
|
13 |
ADAPTER_DIR = "unsloth_trained_weights/checkpoint-1700" # LoRA ckpt
|
|
|
1 |
#!/usr/bin/env python3
|
2 |
# svg_compare_gradio.py
|
3 |
# ------------------------------------------------------------
|
4 |
+
import spaces
|
5 |
import re, os, torch, cairosvg, lpips, clip, gradio as gr
|
6 |
from io import BytesIO
|
7 |
from pathlib import Path
|
8 |
from PIL import Image
|
9 |
from transformers import BitsAndBytesConfig, AutoTokenizer
|
10 |
import gradio as gr
|
11 |
+
|
12 |
|
13 |
# ---------- paths YOU may want to edit ----------------------
|
14 |
ADAPTER_DIR = "unsloth_trained_weights/checkpoint-1700" # LoRA ckpt
|