kaiiddo commited on
Commit
00e9224
·
verified ·
1 Parent(s): ced218d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -50,8 +50,15 @@ def process_image(image, prompt):
50
 
51
  return output_image
52
 
 
 
 
 
 
 
 
53
  # Gradio Interface
54
- with gr.Blocks(title="Qwen Image Editor", theme=gr.themes.Default(primary_hue="#615ced")) as demo:
55
  gr.Markdown("# 🎨 Qwen Image Editor")
56
  gr.Image(value="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_edit_logo.png", label="", height=80)
57
  gr.Markdown("Edit images using text prompts powered by Qwen-Image-Edit (CPU optimized)")
 
50
 
51
  return output_image
52
 
53
+ # Create theme with valid color
54
+ theme = gr.themes.Default(
55
+ primary_hue=gr.themes.colors.purple, # Use Gradio's built-in purple color
56
+ secondary_hue=gr.themes.colors.purple,
57
+ neutral_hue=gr.themes.colors.gray
58
+ )
59
+
60
  # Gradio Interface
61
+ with gr.Blocks(title="Qwen Image Editor", theme=theme) as demo:
62
  gr.Markdown("# 🎨 Qwen Image Editor")
63
  gr.Image(value="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_edit_logo.png", label="", height=80)
64
  gr.Markdown("Edit images using text prompts powered by Qwen-Image-Edit (CPU optimized)")