youngtsai commited on
Commit
759d6ff
·
1 Parent(s): cbd6f64

with gr.Blocks(theme=gr.themes.Soft()) as demo: # 使用 'light' 主题作为默认值

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,9 +122,9 @@ def main_function(password: str, theme: str, language: str, method: str, rounds:
122
 
123
 
124
  if __name__ == "__main__":
125
- with gr.Blocks() as demo: # 使用 'light' 主题作为默认值
126
  # Header 或其他组件可以在这里添加,如果有需要
127
- with gr.Row(theme=gr.themes.Soft()):
128
  with gr.Column(scale=2): # 2/3 的宽度
129
  chat_output = gr.Chatbot(label="生成的對話")
130
  json_file = gr.File(label="下載對話 JSON 文件")
 
122
 
123
 
124
  if __name__ == "__main__":
125
+ with gr.Blocks(theme=gr.themes.Soft()) as demo: # 使用 'light' 主题作为默认值
126
  # Header 或其他组件可以在这里添加,如果有需要
127
+ with gr.Row():
128
  with gr.Column(scale=2): # 2/3 的宽度
129
  chat_output = gr.Chatbot(label="生成的對話")
130
  json_file = gr.File(label="下載對話 JSON 文件")