sang1231 commited on
Commit
9715820
·
verified ·
1 Parent(s): f26d375

Update app.py

Browse files

fix: Remove 'source' arg from gr.Image to fix Gradio TypeError

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -73,7 +73,8 @@ def generate_image(
73
  gr.Interface(
74
  fn=generate_image,
75
  inputs=[
76
- gr.Image(type="pil", label="🖼️ Ảnh Tham Chiếu", source="upload"),
 
77
  gr.Textbox(
78
  label="📝 Mô Tả và Từ Khóa",
79
  placeholder="Nhập mô tả chi tiết về ảnh bạn muốn tạo..."
 
73
  gr.Interface(
74
  fn=generate_image,
75
  inputs=[
76
+ # Đã XÓA 'source="upload"' để khắc phục lỗi TypeError
77
+ gr.Image(type="pil", label="🖼️ Ảnh Tham Chiếu"),
78
  gr.Textbox(
79
  label="📝 Mô Tả và Từ Khóa",
80
  placeholder="Nhập mô tả chi tiết về ảnh bạn muốn tạo..."