Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
|
@@ -43,38 +43,6 @@ def process_image(image, screenReplyThreshold, printedCopyThreshold, portraitRep
|
|
| 43 |
return {"resultCode": "Error", "result": result.text}
|
| 44 |
|
| 45 |
with gr.Blocks() as demo:
|
| 46 |
-
gr.Markdown(
|
| 47 |
-
"""
|
| 48 |
-
<div style="display: flex;align-items: center;">
|
| 49 |
-
<img alt="Opulentyn Logo" src="https://github.com/user-attachments/assets/5fc78032-bff2-4f7e-a174-7d64b22f506d" width="350"/>
|
| 50 |
-
<div>
|
| 51 |
-
<h1>ID Document Liveness Detection</h1>
|
| 52 |
-
<p>We offer <b>on-premises</b> OCR and liveness check solutions available with a <b>perpetual license</b>.</p>
|
| 53 |
-
</div>
|
| 54 |
-
</div>
|
| 55 |
-
|
| 56 |
-
## 🤝 Talk to us
|
| 57 |
-
|
| 58 |
-
<div style="display: flex; align-items: center;">
|
| 59 |
-
<a href="https://opulentyn.com" target="_blank">
|
| 60 |
-
<img src="https://img.shields.io/badge/Website-https%3A%2F%2Fopulentyn.com-blue?style=flat&logo=google-chrome&logoColor=white" alt="Website">
|
| 61 |
-
</a>
|
| 62 |
-
|
| 63 |
-
<a href="mailto:support@opulentyn.com">
|
| 64 |
-
<img src="https://img.shields.io/badge/Email-support%40opulentyn.com-blue?style=flat&logo=gmail&logoColor=white" alt="Email">
|
| 65 |
-
</a>
|
| 66 |
-
|
| 67 |
-
<a href="https://wa.me/13435013587" target="_blank">
|
| 68 |
-
<img src="https://img.shields.io/badge/WhatsApp-%2B13435013587-blue?logo=whatsapp&logoColor=green" alt="WhatsApp">
|
| 69 |
-
</a>
|
| 70 |
-
|
| 71 |
-
<a href="https://join.slack.com/t/opulentyn/shared_invite/zt-2s230jtbq-dWBs8XUZcrYim~nUqiimSA" target="_blank">
|
| 72 |
-
<img src="https://img.shields.io/badge/Slack-support--sdk-blueviolet?style=flat&logo=slack&logoColor=white" alt="Slack">
|
| 73 |
-
</a>
|
| 74 |
-
</div>
|
| 75 |
-
"""
|
| 76 |
-
)
|
| 77 |
-
|
| 78 |
with gr.Row():
|
| 79 |
with gr.Column():
|
| 80 |
image_input = gr.Image(type='pil')
|
|
@@ -90,6 +58,4 @@ with gr.Blocks() as demo:
|
|
| 90 |
|
| 91 |
process_button.click(process_image, inputs=[image_input, screenReplyThreshold, printedCopyThreshold, portraitReplaceThreshold], outputs=[json_output])
|
| 92 |
|
| 93 |
-
gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fopulentyn%2FIDDocLive"><img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fopulentyn%2FIDDocLive&countColor=%23263759" /></a>')
|
| 94 |
-
|
| 95 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 43 |
return {"resultCode": "Error", "result": result.text}
|
| 44 |
|
| 45 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column():
|
| 48 |
image_input = gr.Image(type='pil')
|
|
|
|
| 58 |
|
| 59 |
process_button.click(process_image, inputs=[image_input, screenReplyThreshold, printedCopyThreshold, portraitReplaceThreshold], outputs=[json_output])
|
| 60 |
|
|
|
|
|
|
|
| 61 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|