From 9ae40643d61769eca0226c587abd2faf93e6b40d Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 14:46:40 +0800 Subject: [PATCH] vit-gpt2-image-captioning:test --- app.py | 4 ++-- requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 47f4e24..ec956d0 100644 --- a/app.py +++ b/app.py @@ -30,10 +30,10 @@ def ocr(image): demo = gr.Interface(fn=ocr, inputs='image', outputs='text', - title = "image2text", theme = theme, + css = "footer {visibility: hidden}", examples = ['soccer.jpg']) if __name__ == "__main__": - demo.queue(concurrency_count=10).launch(server_name = "0.0.0.0") + demo.queue(concurrency_count=10).launch(server_name = "0.0.0.0", share=True) diff --git a/requirements.txt b/requirements.txt index ff0f465..b5f3c99 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ Pillow opencv-python -protobuf==3.20.1