vit-gpt2-image-captioning:test
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-26 14:46:40 +08:00
parent 59fa8ebbb1
commit 9ae40643d6
2 changed files with 2 additions and 3 deletions

4
app.py
View File

@ -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)

View File

@ -1,3 +1,2 @@
Pillow
opencv-python
protobuf==3.20.1