Update app.py
Browse files
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("""##
|
| 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.
|
| 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):
|