Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ tokenizer = vl_chat_processor.tokenizer
|
|
14 |
|
15 |
# Define the function for image description with ZeroGPU support
|
16 |
@spaces.GPU # Ensures GPU allocation for this function
|
17 |
-
def describe_image(image, user_question="Describe
|
18 |
try:
|
19 |
# Convert the PIL Image to a BytesIO object for compatibility
|
20 |
image_byte_arr = BytesIO()
|
@@ -80,7 +80,7 @@ def gradio_app():
|
|
80 |
image_input = gr.Image(type="pil", label="Upload an Image")
|
81 |
question_input = gr.Textbox(
|
82 |
label="Question (optional)",
|
83 |
-
placeholder="
|
84 |
lines=2
|
85 |
)
|
86 |
|
|
|
14 |
|
15 |
# Define the function for image description with ZeroGPU support
|
16 |
@spaces.GPU # Ensures GPU allocation for this function
|
17 |
+
def describe_image(image, user_question="Describe this image in great detail."):
|
18 |
try:
|
19 |
# Convert the PIL Image to a BytesIO object for compatibility
|
20 |
image_byte_arr = BytesIO()
|
|
|
80 |
image_input = gr.Image(type="pil", label="Upload an Image")
|
81 |
question_input = gr.Textbox(
|
82 |
label="Question (optional)",
|
83 |
+
placeholder="Ask a question about the image (e.g., 'What is happening in this image?')",
|
84 |
lines=2
|
85 |
)
|
86 |
|