wenkai26 commited on
Commit
3d4867b
·
verified ·
1 Parent(s): 321d382

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ novel_types = ["现代", "古文"] # 定义小说类型列表
56
 
57
  demo = gr.Interface(
58
  fn=maas_chat,
59
- inputs=[gr.Textbox(lines=6, placeholder="输入小说片段(JSON 格式)"), gr.Dropdown(novel_types)], # 添加下拉输入框默认现代
60
 
61
  outputs=gr.Textbox(lines=6, placeholder="输出提示词(JSON 格式)"),
62
  title="小说片段转 AI 绘画提示词",
 
56
 
57
  demo = gr.Interface(
58
  fn=maas_chat,
59
+ inputs=[gr.Textbox(lines=6, placeholder="输入小说片段(JSON 格式)"), gr.Dropdown(novel_types,label="文章类型")], # 添加下拉输入框默认现代
60
 
61
  outputs=gr.Textbox(lines=6, placeholder="输出提示词(JSON 格式)"),
62
  title="小说片段转 AI 绘画提示词",