Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ instruction = f"""
|
|
| 76 |
"""
|
| 77 |
|
| 78 |
def infer(image_in):
|
| 79 |
-
gr.Info("Getting image caption with
|
| 80 |
user_prompt = get_caption(image_in)
|
| 81 |
|
| 82 |
prompt = f"{instruction.strip()}\n{user_prompt}</s>"
|
|
@@ -121,7 +121,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 121 |
submit_btn = gr.Button("Make LLM system from my pic !")
|
| 122 |
with gr.Column():
|
| 123 |
caption = gr.Textbox(
|
| 124 |
-
label = "Image caption (
|
| 125 |
elem_id = "image-caption"
|
| 126 |
)
|
| 127 |
result = gr.Textbox(
|
|
|
|
| 76 |
"""
|
| 77 |
|
| 78 |
def infer(image_in):
|
| 79 |
+
gr.Info("Getting image caption with Kosmos2...")
|
| 80 |
user_prompt = get_caption(image_in)
|
| 81 |
|
| 82 |
prompt = f"{instruction.strip()}\n{user_prompt}</s>"
|
|
|
|
| 121 |
submit_btn = gr.Button("Make LLM system from my pic !")
|
| 122 |
with gr.Column():
|
| 123 |
caption = gr.Textbox(
|
| 124 |
+
label = "Image caption (Kosmos2)",
|
| 125 |
elem_id = "image-caption"
|
| 126 |
)
|
| 127 |
result = gr.Textbox(
|