Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,20 @@ from roop.utilities import normalize_output_path
|
|
| 14 |
import os
|
| 15 |
from PIL import Image
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
def swap_face(source_file, target_file,doFaceEnhancer):
|
| 19 |
|
|
@@ -67,6 +81,6 @@ def swap_face(source_file, target_file,doFaceEnhancer):
|
|
| 67 |
|
| 68 |
|
| 69 |
app = gr.Interface(
|
| 70 |
-
fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(label="face_enhancer?", info="do face enhancer?")], outputs="image"
|
| 71 |
)
|
| 72 |
app.launch()
|
|
|
|
| 14 |
import os
|
| 15 |
from PIL import Image
|
| 16 |
|
| 17 |
+
article_text = """
|
| 18 |
+
<div style="text-align: center;">
|
| 19 |
+
<p>Enjoying the tool? Buy me a coffee and get exclusive prompt guides!</p>
|
| 20 |
+
<p><i>Instantly unlock helpful tips for creating better prompts!</i></p>
|
| 21 |
+
<div style="display: flex; justify-content: center;">
|
| 22 |
+
<a href="https://piczify.lemonsqueezy.com/buy/0f5206fa-68e8-42f6-9ca8-4f80c587c83e">
|
| 23 |
+
<img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png"
|
| 24 |
+
alt="Buy Me a Coffee"
|
| 25 |
+
style="height: 40px; width: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 10px;">
|
| 26 |
+
</a>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
|
| 32 |
def swap_face(source_file, target_file,doFaceEnhancer):
|
| 33 |
|
|
|
|
| 81 |
|
| 82 |
|
| 83 |
app = gr.Interface(
|
| 84 |
+
fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(label="face_enhancer?", info="do face enhancer?")], outputs="image", article = article_text
|
| 85 |
)
|
| 86 |
app.launch()
|