Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,8 @@ def infer(image_input):
|
|
33 |
|
34 |
|
35 |
llama_q = f"""
|
36 |
-
I'll give you a simple image caption, from i want you to provide a story that would fit well with the image
|
|
|
37 |
'{clipi_result[0]}'
|
38 |
|
39 |
"""
|
@@ -118,7 +119,7 @@ with gr.Blocks(css=css) as demo:
|
|
118 |
)
|
119 |
with gr.Row():
|
120 |
with gr.Column():
|
121 |
-
image_in = gr.Image(label="Image input", type="filepath", elem_id="image-in", height=
|
122 |
submit_btn = gr.Button('Tell me a story')
|
123 |
with gr.Column():
|
124 |
#caption = gr.Textbox(label="Generated Caption")
|
|
|
33 |
|
34 |
|
35 |
llama_q = f"""
|
36 |
+
I'll give you a simple image caption, from i want you to provide a story that would fit well with the image. Please be creative and only generate a fictional story.
|
37 |
+
Here's the image description:
|
38 |
'{clipi_result[0]}'
|
39 |
|
40 |
"""
|
|
|
119 |
)
|
120 |
with gr.Row():
|
121 |
with gr.Column():
|
122 |
+
image_in = gr.Image(label="Image input", type="filepath", elem_id="image-in", height=512)
|
123 |
submit_btn = gr.Button('Tell me a story')
|
124 |
with gr.Column():
|
125 |
#caption = gr.Textbox(label="Generated Caption")
|