vit-gpt2-image-captioning:test
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
59fa8ebbb1
commit
9ae40643d6
4
app.py
4
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)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
Pillow
|
||||
opencv-python
|
||||
protobuf==3.20.1
|
||||
|
|
Loading…
Reference in New Issue