Update app.py
Browse files
app.py
CHANGED
|
@@ -50,12 +50,9 @@ def interface():
|
|
| 50 |
with gr.Column():
|
| 51 |
prompt = gr.Textbox(label="Nhập yêu cầu nội dung")
|
| 52 |
file_upload = gr.File(label="Tải lên file kèm theo", type="filepath")
|
| 53 |
-
|
| 54 |
-
# Sử dụng gr.Radio thay vì gr.CheckboxGroup
|
| 55 |
content_type = gr.Radio(label="Chọn loại nội dung",
|
| 56 |
choices=CONTENT_TYPES,
|
| 57 |
value=None) # Giá trị mặc định là không có gì được chọn
|
| 58 |
-
|
| 59 |
content_button = gr.Button("Tạo Nội dung")
|
| 60 |
|
| 61 |
with gr.Column():
|
|
@@ -104,6 +101,7 @@ def interface():
|
|
| 104 |
return app
|
| 105 |
|
| 106 |
|
|
|
|
| 107 |
# Khởi chạy ứng dụng
|
| 108 |
if __name__ == "__main__":
|
| 109 |
app = interface()
|
|
|
|
| 50 |
with gr.Column():
|
| 51 |
prompt = gr.Textbox(label="Nhập yêu cầu nội dung")
|
| 52 |
file_upload = gr.File(label="Tải lên file kèm theo", type="filepath")
|
|
|
|
|
|
|
| 53 |
content_type = gr.Radio(label="Chọn loại nội dung",
|
| 54 |
choices=CONTENT_TYPES,
|
| 55 |
value=None) # Giá trị mặc định là không có gì được chọn
|
|
|
|
| 56 |
content_button = gr.Button("Tạo Nội dung")
|
| 57 |
|
| 58 |
with gr.Column():
|
|
|
|
| 101 |
return app
|
| 102 |
|
| 103 |
|
| 104 |
+
|
| 105 |
# Khởi chạy ứng dụng
|
| 106 |
if __name__ == "__main__":
|
| 107 |
app = interface()
|