Spaces:
Runtime error
Runtime error
Update
Browse files
demo.py
CHANGED
|
@@ -147,7 +147,8 @@ with gr.Blocks() as demo:
|
|
| 147 |
```docker run -it -p 7860:7860 --platform=linux/amd64 \
|
| 148 |
-e LICENSE_KEY="YOUR_VALUE_HERE" \
|
| 149 |
registry.hf.space/faceonlive-id-document-recognition-sdk:latest```<br/><br/>
|
| 150 |
-
Contact us at [email protected] for issues and support.<br/>
|
|
|
|
| 151 |
"""
|
| 152 |
)
|
| 153 |
with gr.TabItem("ID Card Recognition"):
|
|
@@ -156,7 +157,6 @@ with gr.Blocks() as demo:
|
|
| 156 |
id_image_input1 = gr.Image(type='filepath', label='Front')
|
| 157 |
id_image_input2 = gr.Image(type='filepath', label='Back')
|
| 158 |
id_recognition_button = gr.Button("ID Card Recognition")
|
| 159 |
-
gr.Markdown("## Examples")
|
| 160 |
id_examples = gr.Examples(
|
| 161 |
examples=[['examples/11.jpg', 'examples/12.jpg'], ['examples/21.jpg', 'examples/22.jpg'], ['examples/3.jpg', None]],
|
| 162 |
inputs=[id_image_input1, id_image_input2],
|
|
@@ -190,7 +190,6 @@ with gr.Blocks() as demo:
|
|
| 190 |
with gr.Column(scale=3):
|
| 191 |
credit_image_input = gr.Image(type='filepath')
|
| 192 |
credit_recognition_button = gr.Button("Credit Card Recognition")
|
| 193 |
-
gr.Markdown("## Examples")
|
| 194 |
credit_examples = gr.Examples(
|
| 195 |
examples=['examples/c1.jpg', 'examples/c2.jpg', 'examples/c3.jpg'],
|
| 196 |
inputs=credit_image_input,
|
|
|
|
| 147 |
```docker run -it -p 7860:7860 --platform=linux/amd64 \
|
| 148 |
-e LICENSE_KEY="YOUR_VALUE_HERE" \
|
| 149 |
registry.hf.space/faceonlive-id-document-recognition-sdk:latest```<br/><br/>
|
| 150 |
+
Contact us at [email protected] for issues and support.<br/><br/>
|
| 151 |
+
* For security and privacy, kindly refrain from uploading real ID card or credit card information on this platform.
|
| 152 |
"""
|
| 153 |
)
|
| 154 |
with gr.TabItem("ID Card Recognition"):
|
|
|
|
| 157 |
id_image_input1 = gr.Image(type='filepath', label='Front')
|
| 158 |
id_image_input2 = gr.Image(type='filepath', label='Back')
|
| 159 |
id_recognition_button = gr.Button("ID Card Recognition")
|
|
|
|
| 160 |
id_examples = gr.Examples(
|
| 161 |
examples=[['examples/11.jpg', 'examples/12.jpg'], ['examples/21.jpg', 'examples/22.jpg'], ['examples/3.jpg', None]],
|
| 162 |
inputs=[id_image_input1, id_image_input2],
|
|
|
|
| 190 |
with gr.Column(scale=3):
|
| 191 |
credit_image_input = gr.Image(type='filepath')
|
| 192 |
credit_recognition_button = gr.Button("Credit Card Recognition")
|
|
|
|
| 193 |
credit_examples = gr.Examples(
|
| 194 |
examples=['examples/c1.jpg', 'examples/c2.jpg', 'examples/c3.jpg'],
|
| 195 |
inputs=credit_image_input,
|