Karthikraj Sivakumar
commited on
Commit
·
e3ce74a
1
Parent(s):
090f43d
fixed output bug
Browse files
app.py
CHANGED
|
@@ -291,7 +291,7 @@ def predict_captcha(image):
|
|
| 291 |
demo = gr.Interface(
|
| 292 |
fn=predict_captcha,
|
| 293 |
inputs=gr.Image(type="pil", label="Upload CAPTCHA Image"),
|
| 294 |
-
outputs=gr.
|
| 295 |
title="CAPTCHA Recognition System",
|
| 296 |
description="""
|
| 297 |
**CS4243 Mini Project - CAPTCHA Recognition using CRNN + CTC Loss**
|
|
@@ -323,5 +323,5 @@ demo = gr.Interface(
|
|
| 323 |
)
|
| 324 |
|
| 325 |
if __name__ == "__main__":
|
| 326 |
-
demo.launch()
|
| 327 |
|
|
|
|
| 291 |
demo = gr.Interface(
|
| 292 |
fn=predict_captcha,
|
| 293 |
inputs=gr.Image(type="pil", label="Upload CAPTCHA Image"),
|
| 294 |
+
outputs=gr.Textbox(label="Predicted CAPTCHA Text", scale=2),
|
| 295 |
title="CAPTCHA Recognition System",
|
| 296 |
description="""
|
| 297 |
**CS4243 Mini Project - CAPTCHA Recognition using CRNN + CTC Loss**
|
|
|
|
| 323 |
)
|
| 324 |
|
| 325 |
if __name__ == "__main__":
|
| 326 |
+
demo.launch(share=True) # Enable share button for 72-hour public links
|
| 327 |
|