Update app.py
Browse files
app.py
CHANGED
|
@@ -38,14 +38,14 @@ def parse_input(image, sketchpad, state):
|
|
| 38 |
def tabs_select(e: gr.SelectData, _state):
|
| 39 |
_state["tab_index"] = e.index
|
| 40 |
|
| 41 |
-
example_img_paths = ["https://4.img-dpreview.com/files/p/E~TS590x0~articles/3925134721/0266554465.jpeg"
|
| 42 |
-
"https://images4.alphacoders.com/688/688832.jpg"]
|
| 43 |
|
| 44 |
|
| 45 |
with gr.Blocks() as iface:
|
| 46 |
gr.HTML("""<p align="center"><img src="https://cdn-icons-png.flaticon.com/512/5853/5853758.png" style="height: 60px"/><p>""")
|
| 47 |
gr.HTML("""<center><font size=8>Image Captioning Demo</center>""")
|
| 48 |
-
gr.HTML("""<center><font size=3>In this space you can input either an image or draw a sketch of
|
| 49 |
|
| 50 |
state = gr.State({"tab_index": 0})
|
| 51 |
|
|
|
|
| 38 |
def tabs_select(e: gr.SelectData, _state):
|
| 39 |
_state["tab_index"] = e.index
|
| 40 |
|
| 41 |
+
example_img_paths = [["https://4.img-dpreview.com/files/p/E~TS590x0~articles/3925134721/0266554465.jpeg"],
|
| 42 |
+
["https://images4.alphacoders.com/688/688832.jpg"]]
|
| 43 |
|
| 44 |
|
| 45 |
with gr.Blocks() as iface:
|
| 46 |
gr.HTML("""<p align="center"><img src="https://cdn-icons-png.flaticon.com/512/5853/5853758.png" style="height: 60px"/><p>""")
|
| 47 |
gr.HTML("""<center><font size=8>Image Captioning Demo</center>""")
|
| 48 |
+
gr.HTML("""<center><font size=3>In this space you can input either an image or draw a sketch of object to recieve an Arabic caption.</center>""")
|
| 49 |
|
| 50 |
state = gr.State({"tab_index": 0})
|
| 51 |
|