Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,12 +36,6 @@ examples = ["example1.jpg"]
|
|
| 36 |
print("------------------------- 6 -------------------------\n")
|
| 37 |
title = "Image to Text ViT with LORA"
|
| 38 |
|
| 39 |
-
description = """
|
| 40 |
-
# This is a Heading
|
| 41 |
-
This is a paragraph.
|
| 42 |
-
- Item 1
|
| 43 |
-
- Item 2
|
| 44 |
-
"""
|
| 45 |
# interface = gr.Interface(
|
| 46 |
|
| 47 |
# fn=predict,
|
|
@@ -67,10 +61,10 @@ with gr.Blocks() as demo:
|
|
| 67 |
</h2>
|
| 68 |
</div>
|
| 69 |
""")
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
gr.Image(label="Upload any Image", type = 'pil', optional=True)
|
| 73 |
-
gr.Textbox(type="text",label="Captions")
|
| 74 |
|
| 75 |
|
| 76 |
demo.launch()
|
|
|
|
| 36 |
print("------------------------- 6 -------------------------\n")
|
| 37 |
title = "Image to Text ViT with LORA"
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# interface = gr.Interface(
|
| 40 |
|
| 41 |
# fn=predict,
|
|
|
|
| 61 |
</h2>
|
| 62 |
</div>
|
| 63 |
""")
|
| 64 |
+
gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
|
| 65 |
+
gr.outputs.Textbox(type="text",label="Captions")
|
| 66 |
+
# gr.Image(label="Upload any Image", type = 'pil', optional=True)
|
| 67 |
+
# gr.Textbox(type="text",label="Captions")
|
| 68 |
|
| 69 |
|
| 70 |
demo.launch()
|