Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
44e58c2
1
Parent(s):
768d32b
update: zero_gpu, fontTools
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import random
|
|
|
2 |
import gradio as gr
|
3 |
from sample import (arg_parse,
|
4 |
sampling,
|
5 |
load_fontdiffuer_pipeline)
|
6 |
|
7 |
-
|
8 |
def run_fontdiffuer(source_image,
|
9 |
character,
|
10 |
reference_image,
|
|
|
1 |
import random
|
2 |
+
import spaces
|
3 |
import gradio as gr
|
4 |
from sample import (arg_parse,
|
5 |
sampling,
|
6 |
load_fontdiffuer_pipeline)
|
7 |
|
8 |
+
@spaces.GPU()
|
9 |
def run_fontdiffuer(source_image,
|
10 |
character,
|
11 |
reference_image,
|
requirements.txt
CHANGED
@@ -7,3 +7,4 @@ gradio
|
|
7 |
pyyaml
|
8 |
pygame
|
9 |
opencv-python
|
|
|
|
7 |
pyyaml
|
8 |
pygame
|
9 |
opencv-python
|
10 |
+
fontTools
|