radub23 commited on
Commit
35ce90a
·
1 Parent(s): 004ca7e

Fix Gradio Image component compatibility issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks(title="Warning Lamp Detector", theme=gr.themes.Soft()) as demo:
53
  image_input = gr.Image(
54
  label="Upload Warning Lamp Image",
55
  type="pil",
56
- tool="select"
57
  )
58
  system_message = gr.Textbox(
59
  value="You are an expert in warning lamp classification. Analyze the image and provide detailed information about the type, color, and status of the warning lamp.",
 
53
  image_input = gr.Image(
54
  label="Upload Warning Lamp Image",
55
  type="pil",
56
+ sources="upload"
57
  )
58
  system_message = gr.Textbox(
59
  value="You are an expert in warning lamp classification. Analyze the image and provide detailed information about the type, color, and status of the warning lamp.",