Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ instruction = f"""
|
|
98 |
"""
|
99 |
|
100 |
def infer(image_in):
|
101 |
-
gr.Info("Getting image caption with
|
102 |
user_prompt = get_caption(image_in)
|
103 |
|
104 |
prompt = f"{instruction.strip()}\n{user_prompt}</s>"
|
@@ -143,7 +143,7 @@ with gr.Blocks(css=css) as demo:
|
|
143 |
submit_btn = gr.Button("Make LLM system from my pic !")
|
144 |
with gr.Column():
|
145 |
caption = gr.Textbox(
|
146 |
-
label = "Image caption (
|
147 |
elem_id = "image-caption"
|
148 |
)
|
149 |
result = gr.Textbox(
|
|
|
98 |
"""
|
99 |
|
100 |
def infer(image_in):
|
101 |
+
gr.Info("Getting image caption with moondream1...")
|
102 |
user_prompt = get_caption(image_in)
|
103 |
|
104 |
prompt = f"{instruction.strip()}\n{user_prompt}</s>"
|
|
|
143 |
submit_btn = gr.Button("Make LLM system from my pic !")
|
144 |
with gr.Column():
|
145 |
caption = gr.Textbox(
|
146 |
+
label = "Image caption (moondream1)",
|
147 |
elem_id = "image-caption"
|
148 |
)
|
149 |
result = gr.Textbox(
|