Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ with gr.Blocks() as demo:
|
|
| 33 |
description_input = gr.Textbox(label="请输入描述", placeholder="例如:天空中的魔法树屋")
|
| 34 |
style_selector = gr.Dropdown(choices=["奇幻", "赛博朋克", "现实主义"], label="选择风格")
|
| 35 |
detail_checkbox = gr.Checkbox(label="增强细节")
|
| 36 |
-
audio_input = gr.Audio(type="
|
| 37 |
|
| 38 |
with gr.Row():
|
| 39 |
output_prompt = gr.Textbox(label="生成的提示词", interactive=False)
|
|
@@ -47,3 +47,4 @@ with gr.Blocks() as demo:
|
|
| 47 |
demo.launch()
|
| 48 |
|
| 49 |
|
|
|
|
|
|
| 33 |
description_input = gr.Textbox(label="请输入描述", placeholder="例如:天空中的魔法树屋")
|
| 34 |
style_selector = gr.Dropdown(choices=["奇幻", "赛博朋克", "现实主义"], label="选择风格")
|
| 35 |
detail_checkbox = gr.Checkbox(label="增强细节")
|
| 36 |
+
audio_input = gr.Audio(type="filepath", label="录制您的描述")
|
| 37 |
|
| 38 |
with gr.Row():
|
| 39 |
output_prompt = gr.Textbox(label="生成的提示词", interactive=False)
|
|
|
|
| 47 |
demo.launch()
|
| 48 |
|
| 49 |
|
| 50 |
+
|