JunchuanYu commited on
Commit
5d65fa7
·
1 Parent(s): f8aab44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -45,7 +45,6 @@ with gr.Blocks(css=css) as demo:
45
  with gr.Column():
46
  with gr.Row():
47
  keyTxt = gr.Textbox(show_label=False, placeholder=f"You can input your own openAI API-key",value=hide_middle_chars(my_api_key),visible=True, type="password", label="API-Key")
48
- # keyTxt = gr.Textbox(show_label=False, placeholder=f"You can input your own openAI API-key",value=my_api_key,visible=True, type="password", label="API-Key")
49
  systemPromptTxt = gr.Textbox(show_label=True,placeholder=f"Set a custom insruction for the chatbot: You are a helpful assistant.",label="Custom prompt",value=initial_prompt,lines=10,).style(container=False)
50
 
51
  with gr.Row():
@@ -85,7 +84,6 @@ with gr.Blocks(css=css) as demo:
85
  exportMarkdownBtn.click(export_markdown,[saveFileName, systemPromptTxt, history, chatbot],downloadFile,show_progress=True,)
86
  downloadFile.change(load_chat_history,[downloadFile, systemPromptTxt, history, chatbot],[saveFileName, systemPromptTxt, history, chatbot],)
87
 
88
- # demo.title = "Sydney-AI 2.0"
89
 
90
  if __name__ == "__main__":
91
  demo.queue().launch(debug=False,show_api=False)
 
45
  with gr.Column():
46
  with gr.Row():
47
  keyTxt = gr.Textbox(show_label=False, placeholder=f"You can input your own openAI API-key",value=hide_middle_chars(my_api_key),visible=True, type="password", label="API-Key")
 
48
  systemPromptTxt = gr.Textbox(show_label=True,placeholder=f"Set a custom insruction for the chatbot: You are a helpful assistant.",label="Custom prompt",value=initial_prompt,lines=10,).style(container=False)
49
 
50
  with gr.Row():
 
84
  exportMarkdownBtn.click(export_markdown,[saveFileName, systemPromptTxt, history, chatbot],downloadFile,show_progress=True,)
85
  downloadFile.change(load_chat_history,[downloadFile, systemPromptTxt, history, chatbot],[saveFileName, systemPromptTxt, history, chatbot],)
86
 
 
87
 
88
  if __name__ == "__main__":
89
  demo.queue().launch(debug=False,show_api=False)