Ivan000 commited on
Commit
d762144
·
verified ·
1 Parent(s): cd869da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -39,6 +39,12 @@ custom_css = """
39
  padding: 10px 20px;
40
  font-size: 16px;
41
  border-radius: 5px;
 
 
 
 
 
 
42
  }
43
  .gr-textbox {
44
  margin-top: 10px;
@@ -49,6 +55,9 @@ custom_css = """
49
  .gr-slider {
50
  margin-top: 20px;
51
  }
 
 
 
52
  """
53
 
54
  # Create the Gradio interface
@@ -64,11 +73,9 @@ with gr.Blocks(css=custom_css) as demo:
64
  )
65
 
66
  send_btn = gr.Button("Send")
67
-
68
- with gr.Row():
69
  clear_btn = gr.Button("Clear Chat")
70
 
71
- with gr.Row():
72
  temperature_slider = gr.Slider(0, 1, 0.7, step=0.1, label="Temperature")
73
  max_new_tokens_slider = gr.Slider(1, 1000, 100, step=1, label="Max New Tokens")
74
 
 
39
  padding: 10px 20px;
40
  font-size: 16px;
41
  border-radius: 5px;
42
+ background-color: #007bff;
43
+ color: white;
44
+ border: none;
45
+ }
46
+ .gr-button:hover {
47
+ background-color: #0056b3;
48
  }
49
  .gr-textbox {
50
  margin-top: 10px;
 
55
  .gr-slider {
56
  margin-top: 20px;
57
  }
58
+ .settings {
59
+ margin-top: 20px;
60
+ }
61
  """
62
 
63
  # Create the Gradio interface
 
73
  )
74
 
75
  send_btn = gr.Button("Send")
 
 
76
  clear_btn = gr.Button("Clear Chat")
77
 
78
+ with gr.Accordion("Advanced Settings", open=False, elem_id="settings"):
79
  temperature_slider = gr.Slider(0, 1, 0.7, step=0.1, label="Temperature")
80
  max_new_tokens_slider = gr.Slider(1, 1000, 100, step=1, label="Max New Tokens")
81