faelfernandes commited on
Commit
6bf234f
1 Parent(s): ccbb710

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def format_prompt(message, history, system_prompt=None):
14
  return prompt
15
 
16
  def generate(
17
- prompt, history, system_prompt=None, temperature=0.2, max_new_tokens=8192, top_p=0.95, repetition_penalty=1.0,
18
  ):
19
  temperature = float(temperature)
20
  if temperature < 1e-2:
@@ -46,7 +46,34 @@ mychatbot = gr.Chatbot(
46
  demo = gr.ChatInterface(
47
  fn=generate,
48
  chatbot=mychatbot,
49
- title="Seja bem vindo! Bom te ver aqui, em que posso te servir hoje?",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  )
51
 
52
  demo.queue().launch(show_api=False)
 
14
  return prompt
15
 
16
  def generate(
17
+ prompt, history, system_prompt=None, temperature=0.2, max_new_tokens=512, top_p=0.95, repetition_penalty=1.0,
18
  ):
19
  temperature = float(temperature)
20
  if temperature < 1e-2:
 
46
  demo = gr.ChatInterface(
47
  fn=generate,
48
  chatbot=mychatbot,
49
+ title="Hello! I'm Elisa by SpriFi.👋 How can I help you today?",
50
+ css="body { background-color: inherit; overflow-x:hidden;}"
51
+ ":root {--color-accent: transparent !important; --color-accent-soft:transparent !important; --code-background-fill:black !important; --body-text-color:white !important;}"
52
+ "#component-2 {background:#ffffff1a; display:contents;}"
53
+ "div#component-0 { height: auto !important;}"
54
+ ".gradio-container.gradio-container-4-8-0.svelte-1kyws56.app {background: #333;}gradio-app {background: #333 !important;}"
55
+ "gradio-app {background: linear-gradient(134deg,#00425e 0%,#001a3f 43%,#421438 77%) !important; background-attachment: fixed !important; background-position: top;}"
56
+ ".panel.svelte-vt1mxs {background: transparent; padding:0;}"
57
+ ".block.svelte-90oupt { background: transparent; border-color: transparent;}"
58
+ ".bot.svelte-12dsd9j.svelte-12dsd9j.svelte-12dsd9j { background: #ffffff1a; border-color: transparent; color: white;}"
59
+ ".user.svelte-12dsd9j.svelte-12dsd9j.svelte-12dsd9j { background: #ffffff1a; border-color: transparent; color: white; padding: 10px 18px;}"
60
+ "div.svelte-iyf88w{ background: #cc98d445; border-color: transparent; border-radius: 25px;}"
61
+ "textarea.scroll-hide.svelte-1f354aw {background: #555 !important;}"
62
+ ".primary.svelte-cmf5ev { background: transparent; color: white;}"
63
+ ".primary.svelte-cmf5ev:hover { background: transparent; color: white;}"
64
+ "button#component-8 { display: none; position: absolute; margin-top: 60px; border-radius: 25px;}"
65
+ "div#component-9 { max-width: fit-content; margin-left: auto; margin-right: auto;}"
66
+ "button#component-10, button#component-11, button#component-12 { flex: none; background: #ffffff1a; border: none; color: white; margin-right: auto; margin-left: auto; border-radius: 9px; min-width: fit-content;}"
67
+ ".share-button.svelte-12dsd9j { display: none;}"
68
+ "footer.svelte-mpyp5e { display: none !important;}"
69
+ ".message-buttons-bubble.svelte-12dsd9j.svelte-12dsd9j.svelte-12dsd9j { border-color: #31546E; background: #31546E;}"
70
+ ".bubble-wrap.svelte-12dsd9j.svelte-12dsd9j.svelte-12dsd9j {padding: 0;}"
71
+ ".prose h1 { color: white !important; font-size: 16px !important; font-weight: normal !important; background: #ffffff1a; padding: 20px; border-radius: 20px; width: 90%; margin-left: auto !important; margin-right: auto !important;}"
72
+ ".toast-wrap.svelte-pu0yf1 { display:none !important;}"
73
+ ".scroll-hide { scrollbar-width: auto !important;}"
74
+ ".main svelte-1kyws56 {max-width: 800px; align-self: center;}"
75
+ "div#component-4 {max-width: 650px; margin-left: auto; margin-right: auto;}"
76
+ "body::-webkit-scrollbar { display: none;}"
77
  )
78
 
79
  demo.queue().launch(show_api=False)