shukdevdatta123 commited on
Commit
a0d1236
·
verified ·
1 Parent(s): f2955b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -129,6 +129,19 @@ def clear_chat():
129
  with gr.Blocks() as demo:
130
  gr.Markdown("## GPT-4.5 Preview Chatbot")
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  gr.HTML("""
133
  <style>
134
  #api_key_button {
 
129
  with gr.Blocks() as demo:
130
  gr.Markdown("## GPT-4.5 Preview Chatbot")
131
 
132
+ # Accordion for explaining hyperparameters
133
+ with gr.Accordion("Hyperparameters", open=True):
134
+ gr.Markdown("""
135
+ ### Temperature
136
+ - 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.
137
+
138
+ ### Top-P (Nucleus Sampling)
139
+ - Controls the cumulative probability distribution from which the model picks the next word. A lower value makes the model more focused and deterministic, while a higher value increases randomness.
140
+
141
+ ### Max Output Tokens
142
+ - Limits the number of tokens (words or subwords) the model can generate in its response. You can use this to control the length of the response.
143
+ """)
144
+
145
  gr.HTML("""
146
  <style>
147
  #api_key_button {