Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfix: Remove 'source' arg from gr.Image to fix Gradio TypeError
app.py
CHANGED
|
@@ -73,7 +73,8 @@ def generate_image(
|
|
| 73 |
gr.Interface(
|
| 74 |
fn=generate_image,
|
| 75 |
inputs=[
|
| 76 |
-
|
|
|
|
| 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..."
|