EsoCode commited on
Commit
75b7790
β€’
1 Parent(s): 372137d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -99,9 +99,8 @@ with gr.Blocks(css=css) as demo:
99
 
100
 
101
  with gr.Column(elem_id="col-container"):
102
- gr.Markdown("""## OpenAI ChatGPT Demo
103
- Using the ofiicial API (gpt-3.5-turbo model)
104
- Prompt templates from [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts).""",
105
  elem_id="header")
106
 
107
  with gr.Row():
@@ -112,8 +111,7 @@ with gr.Blocks(css=css) as demo:
112
  total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
113
  btn_clear_conversation = gr.Button("πŸ”ƒ Start New Conversation")
114
  with gr.Column():
115
- gr.Markdown("Enter your OpenAI API Key. You can get one [here](https://platform.openai.com/account/api-keys).", elem_id="label")
116
- user_token = gr.Textbox(value='', placeholder="OpenAI API Key", type="text", show_label=False)
117
  prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys()))
118
  prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
119
  with gr.Accordion("Advanced parameters", open=False):
 
99
 
100
 
101
  with gr.Column(elem_id="col-container"):
102
+ gr.Markdown("""## OpenAi AstroBot
103
+ Using the ofiicial API (gpt-3.5-turbo model)""",
 
104
  elem_id="header")
105
 
106
  with gr.Row():
 
111
  total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
112
  btn_clear_conversation = gr.Button("πŸ”ƒ Start New Conversation")
113
  with gr.Column():
114
+ user_token = gr.Textbox(value='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', placeholder="OpenAI API Key", type="text", show_label=False)
 
115
  prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys()))
116
  prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
117
  with gr.Accordion("Advanced parameters", open=False):