Spaces:
Running
Running
Camille
commited on
Commit
•
39b8f80
1
Parent(s):
d58dd74
fix: Version name
Browse files- app.py +4 -4
- flagged/Output/0.png +0 -0
- flagged/Output/1.png +0 -0
- flagged/img/0.jpg +0 -0
- flagged/img/1.jpg +0 -0
- flagged/log.csv +0 -1
- gradio_queue.db-journal +0 -0
app.py
CHANGED
@@ -17,7 +17,7 @@ def inference(img, ver):
|
|
17 |
padding = 10
|
18 |
x, y = 15, 15 # 180, 412
|
19 |
w, h = title_font.getsize(title_text)
|
20 |
-
if ver == "Version 2 (
|
21 |
out = face2paint(model2, img)
|
22 |
else:
|
23 |
out = face2paint(model1, img)
|
@@ -33,10 +33,10 @@ gr.Interface(
|
|
33 |
[
|
34 |
gr.inputs.Image(type="pil", source="upload"),
|
35 |
gr.inputs.Radio(
|
36 |
-
["Version 1 (
|
37 |
type="value",
|
38 |
-
default="Version 2 (
|
39 |
-
label="
|
40 |
),
|
41 |
],
|
42 |
gr.outputs.Image(type="pil"),
|
|
|
17 |
padding = 10
|
18 |
x, y = 15, 15 # 180, 412
|
19 |
w, h = title_font.getsize(title_text)
|
20 |
+
if ver == "Version 2 (Réaliste)":
|
21 |
out = face2paint(model2, img)
|
22 |
else:
|
23 |
out = face2paint(model1, img)
|
|
|
33 |
[
|
34 |
gr.inputs.Image(type="pil", source="upload"),
|
35 |
gr.inputs.Radio(
|
36 |
+
["Version 1 (Stylisé)", "Version 2 (Réaliste)"],
|
37 |
type="value",
|
38 |
+
default="Version 2 (Réaliste)",
|
39 |
+
label="Version",
|
40 |
),
|
41 |
],
|
42 |
gr.outputs.Image(type="pil"),
|
flagged/Output/0.png
DELETED
Binary file (298 kB)
|
|
flagged/Output/1.png
DELETED
Binary file (298 kB)
|
|
flagged/img/0.jpg
DELETED
Binary file (57.6 kB)
|
|
flagged/img/1.jpg
DELETED
Binary file (57.6 kB)
|
|
flagged/log.csv
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
img,version,Output,timestamp
|
|
|
|
gradio_queue.db-journal
CHANGED
Binary files a/gradio_queue.db-journal and b/gradio_queue.db-journal differ
|
|