Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -98,7 +98,7 @@ body {
|
|
| 98 |
}
|
| 99 |
"""
|
| 100 |
|
| 101 |
-
|
| 102 |
inputs=gr.inputs.Image(type="pil"),
|
| 103 |
outputs=outputs,
|
| 104 |
examples=examples,
|
|
@@ -107,7 +107,7 @@ interface = gr.Interface(fn=generate_captions,
|
|
| 107 |
article=article,
|
| 108 |
css=css,
|
| 109 |
enable_queue=True)
|
| 110 |
-
|
| 111 |
|
| 112 |
'''
|
| 113 |
|
|
|
|
| 98 |
}
|
| 99 |
"""
|
| 100 |
|
| 101 |
+
iface = gr.Interface(fn=generate_captions,
|
| 102 |
inputs=gr.inputs.Image(type="pil"),
|
| 103 |
outputs=outputs,
|
| 104 |
examples=examples,
|
|
|
|
| 107 |
article=article,
|
| 108 |
css=css,
|
| 109 |
enable_queue=True)
|
| 110 |
+
iface.launch(server_name="0.0.0.0", server_port=7860)
|
| 111 |
|
| 112 |
'''
|
| 113 |
|