tatihden commited on
Commit
a42e410
·
verified ·
1 Parent(s): e61db62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def chat_inf(system_prompt, prompt, history, client_choice, seed, temp, tokens,
61
  output = ""
62
 
63
  for response in stream:
64
- output = response
65
  history.append((prompt, output))
66
  yield history
67
 
@@ -80,7 +80,7 @@ def check_rand(inp, val):
80
  return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
81
 
82
 
83
- with gr.Blocks() as app:
84
  gr.HTML(
85
  """<center><h1 style='font-size:xx-large;'>CalmChat:A mental Health Conversational Agent</h1></center>""")
86
  with gr.Group():
 
61
  output = ""
62
 
63
  for response in stream:
64
+ output+= response
65
  history.append((prompt, output))
66
  yield history
67
 
 
80
  return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
81
 
82
 
83
+ with gr.Blocks(theme=gr.themes.Soft(),css=".gradio-container {background-color: rgb(187 247 208)}") as app:
84
  gr.HTML(
85
  """<center><h1 style='font-size:xx-large;'>CalmChat:A mental Health Conversational Agent</h1></center>""")
86
  with gr.Group():