girishwangikar commited on
Commit
30edff2
·
verified ·
1 Parent(s): 433c5a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -12,23 +12,21 @@ CSS = """
12
  .duplicate-button {
13
  margin: auto !important;
14
  color: white !important;
15
- background: purple !important;
16
  border-radius: 100vh !important;
17
  }
18
  h3 {
19
  text-align: center;
20
  }
21
- button {
22
- background-color: purple !important;
23
- }
24
  footer {
25
  text-align: center;
26
  padding: 10px;
27
  position: fixed;
28
  left: 0;
29
- bottom: 0;
30
  width: 100%;
31
- background-color: #f0f0f0;
 
32
  }
33
  """
34
 
@@ -44,7 +42,7 @@ def generate_response(
44
  message: str,
45
  history: list,
46
  system_prompt: str,
47
- temperature: float = 0.5,
48
  max_tokens: int = 512
49
  ):
50
  conversation = [
@@ -109,7 +107,7 @@ with gr.Blocks(css=CSS, theme="GSW") as demo:
109
  minimum=0,
110
  maximum=1,
111
  step=0.1,
112
- value=0.7,
113
  label="Temperature",
114
  )
115
  max_tokens = gr.Slider(
 
12
  .duplicate-button {
13
  margin: auto !important;
14
  color: white !important;
15
+ background: black !important;
16
  border-radius: 100vh !important;
17
  }
18
  h3 {
19
  text-align: center;
20
  }
 
 
 
21
  footer {
22
  text-align: center;
23
  padding: 10px;
24
  position: fixed;
25
  left: 0;
26
+ bottom: 20px;
27
  width: 100%;
28
+ background-color: rgba(240, 240, 240, 0.8);
29
+ z-index: 1000;
30
  }
31
  """
32
 
 
42
  message: str,
43
  history: list,
44
  system_prompt: str,
45
+ temperature: float = 0.7,
46
  max_tokens: int = 512
47
  ):
48
  conversation = [
 
107
  minimum=0,
108
  maximum=1,
109
  step=0.1,
110
+ value=0.5,
111
  label="Temperature",
112
  )
113
  max_tokens = gr.Slider(