Update app.py
Browse files
app.py
CHANGED
|
@@ -100,11 +100,19 @@ def clear_chat():
|
|
| 100 |
# Gradio UI Layout
|
| 101 |
with gr.Blocks() as demo:
|
| 102 |
gr.Markdown("## GPT-4.5 Preview Chatbot")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
# API Key Input
|
| 105 |
with gr.Row():
|
| 106 |
api_key_input = gr.Textbox(label="Enter OpenAI API Key", type="password")
|
| 107 |
-
api_key_button = gr.Button("Set API Key")
|
| 108 |
api_key_output = gr.Textbox(label="API Key Status", interactive=False)
|
| 109 |
|
| 110 |
with gr.Row():
|
|
|
|
| 100 |
# Gradio UI Layout
|
| 101 |
with gr.Blocks() as demo:
|
| 102 |
gr.Markdown("## GPT-4.5 Preview Chatbot")
|
| 103 |
+
|
| 104 |
+
gr.HTML("""
|
| 105 |
+
<style>
|
| 106 |
+
#api_key_button {
|
| 107 |
+
margin-top: 27px; /* Add margin-top to the button */
|
| 108 |
+
}
|
| 109 |
+
</style>
|
| 110 |
+
""")
|
| 111 |
|
| 112 |
# API Key Input
|
| 113 |
with gr.Row():
|
| 114 |
api_key_input = gr.Textbox(label="Enter OpenAI API Key", type="password")
|
| 115 |
+
api_key_button = gr.Button("Set API Key", elem_id="api_key_button")
|
| 116 |
api_key_output = gr.Textbox(label="API Key Status", interactive=False)
|
| 117 |
|
| 118 |
with gr.Row():
|