Spaces:
Runtime error
Runtime error
Commit ·
2926afe
1
Parent(s): 0d2ab62
add description and title
Browse files
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
title: FaceOver
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 3.24.1
|
|
|
|
| 1 |
---
|
| 2 |
title: FaceOver
|
| 3 |
+
emoji: 🐨
|
| 4 |
+
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 3.24.1
|
app.py
CHANGED
|
@@ -10,5 +10,14 @@ def greet(numpy_image,text,float_value):
|
|
| 10 |
image_edit = model_helper.image_from_text(text,PIL_image,float_value)
|
| 11 |
return image_edit
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
iface.launch()
|
|
|
|
| 10 |
image_edit = model_helper.image_from_text(text,PIL_image,float_value)
|
| 11 |
return image_edit
|
| 12 |
|
| 13 |
+
description = "demo for model to edit face with text, you can see the [github repo CelebrityLook](https://github.com/amit154154/CelebrityLook)"
|
| 14 |
+
title = "FaceOver - edit face with text 🐨 "
|
| 15 |
+
|
| 16 |
+
iface = gr.Interface(fn=greet,
|
| 17 |
+
inputs=["image", "text", gr.inputs.Slider(0.0, 1.0)],
|
| 18 |
+
outputs="image",
|
| 19 |
+
title=f"🐦Raven - {title}",
|
| 20 |
+
description=description,
|
| 21 |
+
cache_examples=False
|
| 22 |
+
)
|
| 23 |
iface.launch()
|