zamal commited on
Commit
a3978ee
1 Parent(s): c94fbd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 each stage of this image."):
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="Enter your question about the image (default: 'Describe each stage of this image.')",
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