riyamalshe commited on
Commit
468d0a4
·
verified ·
1 Parent(s): 6a36a65

removed a slash

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceCLient
4
  client = InterfaceClient("HuggingFaceH4/zephyr-7b-beta")
5
 
6
  def respond(message, history):
7
- messages = [{"role": "system", "content": "You are friend chatbot"}]\
8
 
9
  if history:
10
  messages.extend(history)
@@ -19,5 +19,4 @@ def respond(message, history):
19
  return response['choices'][0]['message']['content'].strip()
20
 
21
  chatbot = gr.ChatInterface(respond, type = 'messages')
22
-
23
  chatbot.launch()
 
4
  client = InterfaceClient("HuggingFaceH4/zephyr-7b-beta")
5
 
6
  def respond(message, history):
7
+ messages = [{"role": "system", "content": "You are friend chatbot"}]
8
 
9
  if history:
10
  messages.extend(history)
 
19
  return response['choices'][0]['message']['content'].strip()
20
 
21
  chatbot = gr.ChatInterface(respond, type = 'messages')
 
22
  chatbot.launch()