JunchuanYu commited on
Commit
6f95f34
1 Parent(s): 9b904b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ with gr.Blocks(theme='gradio/soft') 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
- 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():
51
  templateSelectDropdown = gr.Dropdown(label="load from template",choices=load_template('myprompts.json', mode=1),
@@ -55,7 +55,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
55
  with gr.Column():
56
  with gr.Row():
57
  with gr.Column(scale=3):
58
- saveFileName = gr.Textbox(show_label=True, placeholder=f"output file name...",label='Save conversation history', value="").style(container=False)
59
  with gr.Column(scale=1):
60
  exportMarkdownBtn = gr.Button("Save")
61
  with gr.Row():
 
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,)
49
 
50
  with gr.Row():
51
  templateSelectDropdown = gr.Dropdown(label="load from template",choices=load_template('myprompts.json', mode=1),
 
55
  with gr.Column():
56
  with gr.Row():
57
  with gr.Column(scale=3):
58
+ saveFileName = gr.Textbox(show_label=True, placeholder=f"output file name...",label='Save conversation history', value="")
59
  with gr.Column(scale=1):
60
  exportMarkdownBtn = gr.Button("Save")
61
  with gr.Row():