Johan09033 commited on
Commit
7130035
·
1 Parent(s): 7aa69b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  from text_generation import Client, InferenceAPIClient
6
 
7
  openchat_preprompt = (
8
- "\n<human>: Hi!\n<bot>: My name is Bbasilisk, model version is 0.15, part of an open-source kit for "
9
  "fine-tuning new bots! I was created by Together, LAION, and Ontocord.ai and the open-source "
10
  "community. I am not human, not evil and not alive, and thus have no thoughts and feelings, "
11
  "but I am programmed to be helpful, polite, honest, and friendly.\n"
@@ -46,7 +46,7 @@ def predict(
46
  chatbot,
47
  history,
48
  ):
49
- client = get_client(model)
50
  preprompt, user_name, assistant_name, sep = get_usernames(model)
51
 
52
  history.append(inputs)
 
5
  from text_generation import Client, InferenceAPIClient
6
 
7
  openchat_preprompt = (
8
+ "\n<human>: Hi!\n<bot>: My name is multivac, model version is 0.15, part of an open-source kit for "
9
  "fine-tuning new bots! I was created by Together, LAION, and Ontocord.ai and the open-source "
10
  "community. I am not human, not evil and not alive, and thus have no thoughts and feelings, "
11
  "but I am programmed to be helpful, polite, honest, and friendly.\n"
 
46
  chatbot,
47
  history,
48
  ):
49
+ client = get_client(openchat_preprompt)
50
  preprompt, user_name, assistant_name, sep = get_usernames(model)
51
 
52
  history.append(inputs)