shukdevdatta123 commited on
Commit
ddb78ee
·
verified ·
1 Parent(s): dea3593

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -192,10 +192,10 @@ def clear_chat():
192
  )
193
 
194
  # Gradio UI Layout
195
- with gr.Blocks() as demo:
196
  gr.Markdown("## GPT-4.5 Preview Chatbot")
197
 
198
- with gr.Accordion("How to Use This App!", open=False):
199
  gr.Markdown("""
200
  ### Getting Started:
201
  1. Enter your OpenAI API key in the field at the top and click "Set API Key"
@@ -233,7 +233,7 @@ with gr.Blocks() as demo:
233
  """)
234
 
235
  # Accordion for explaining hyperparameters
236
- with gr.Accordion("Hyperparameters", open=False):
237
  gr.Markdown("""
238
  ### Temperature:
239
  Controls the randomness of the model's output. A lower temperature makes the model more deterministic, while a higher temperature makes it more creative and varied.
@@ -271,6 +271,10 @@ with gr.Blocks() as demo:
271
  #transcribe_button:hover {
272
  background: linear-gradient(135deg, #38a169 0%, #68d391 100%); /* Slightly darker green gradient on hover */
273
  }
 
 
 
 
274
  </style>
275
  """)
276
 
 
192
  )
193
 
194
  # Gradio UI Layout
195
+ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
196
  gr.Markdown("## GPT-4.5 Preview Chatbot")
197
 
198
+ with gr.Accordion("How to Use This App!", open=False, elem_id="neuroscope-accordion"):
199
  gr.Markdown("""
200
  ### Getting Started:
201
  1. Enter your OpenAI API key in the field at the top and click "Set API Key"
 
233
  """)
234
 
235
  # Accordion for explaining hyperparameters
236
+ with gr.Accordion("Hyperparameters", open=False, elem_id="neuroscope-accordion"):
237
  gr.Markdown("""
238
  ### Temperature:
239
  Controls the randomness of the model's output. A lower temperature makes the model more deterministic, while a higher temperature makes it more creative and varied.
 
271
  #transcribe_button:hover {
272
  background: linear-gradient(135deg, #38a169 0%, #68d391 100%); /* Slightly darker green gradient on hover */
273
  }
274
+ #neuroscope-accordion {
275
+ background: linear-gradient(to right, #00ff94, #00b4db);
276
+ border-radius: 8px;
277
+ }
278
  </style>
279
  """)
280