Spaces:
Sleeping
Sleeping
TieuDaoChanNhan
commited on
Commit
·
9f6af22
1
Parent(s):
40d0046
update
Browse files
app.py
CHANGED
|
@@ -276,25 +276,16 @@ if __name__ == "__main__":
|
|
| 276 |
# print("gradio:", gr.__version__)
|
| 277 |
|
| 278 |
demo = gr.Interface(
|
| 279 |
-
fn=
|
| 280 |
-
inputs=gr.Image(type="pil", label="
|
| 281 |
-
outputs=
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
# **Transform your face into a personalized emoji!**
|
| 287 |
-
|
| 288 |
-
# ### How to use:
|
| 289 |
-
# 1. 📷 Upload a clear face image
|
| 290 |
-
# 2. ⏱️ Wait for processing
|
| 291 |
-
# 3. 🎭 Get your personalized emoji!
|
| 292 |
-
|
| 293 |
-
# *Note: Now using the exact same architecture as training!*
|
| 294 |
-
# """,
|
| 295 |
-
# theme="huggingface",
|
| 296 |
)
|
| 297 |
|
|
|
|
| 298 |
print("✅ Gradio interface created!")
|
| 299 |
|
| 300 |
# Launch
|
|
|
|
| 276 |
# print("gradio:", gr.__version__)
|
| 277 |
|
| 278 |
demo = gr.Interface(
|
| 279 |
+
fn=generate_emoji_fixed,
|
| 280 |
+
inputs=gr.Image(type="pil", label="Upload Image"),
|
| 281 |
+
outputs=[
|
| 282 |
+
gr.Image(type="pil", label="Generated Emoji"),
|
| 283 |
+
gr.Textbox(label="Status") # Nếu muốn hiển thị thông báo
|
| 284 |
+
],
|
| 285 |
+
title="DTN Face-to-Emoji Generator"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
)
|
| 287 |
|
| 288 |
+
|
| 289 |
print("✅ Gradio interface created!")
|
| 290 |
|
| 291 |
# Launch
|