cateestilo commited on
Commit
5c9dadf
·
verified ·
1 Parent(s): 273a959
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import gradio as gr
 
2
  from huggingface_hub import InferenceClient
3
 
4
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
5
 
6
  def respond(message, history):
7
 
8
- messages = [{"role": "system", "content": "You are a friendly chatbot."}]
9
 
10
  if history:
11
  messages.extend(history)
@@ -19,6 +20,6 @@ def respond(message, history):
19
 
20
  return response['choices'][0]['message']['content'].strip()
21
 
22
- chatbot = gr.ChatInterface(respond, type="messages")
23
 
24
  chatbot.launch()
 
1
  import gradio as gr
2
+ import os
3
  from huggingface_hub import InferenceClient
4
 
5
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
6
 
7
  def respond(message, history):
8
 
9
+ messages = [{"role": "system", "content": "You are a therapist chatbot."}]
10
 
11
  if history:
12
  messages.extend(history)
 
20
 
21
  return response['choices'][0]['message']['content'].strip()
22
 
23
+ chatbot = gr.ChatInterface(respond, type="messages", theme = 'shivi/calm_seafoam')
24
 
25
  chatbot.launch()