JoPmt commited on
Commit
921463a
·
1 Parent(s): 0d161e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
3
  from text_generation import Client, InferenceAPIClient
4
 
5
  cntxt = (
6
- "\nUser: Hi!\nAssistant: I'm StarCoder, a 15.5B parameter Programming and Web Development model trained on over 80 programming languages "
7
- "by BigCode! I was created to be an excellent expert assistant capable of carefully, logically, truthfully, methodically fulfilling any User request."
8
  "I'm capable of acting as an expert AI Writing model, acting as an expert AI Programming model, acting as an expert AI Web Development model and much more... "
9
  "I'm programmed to be helpful, polite, honest, and friendly.\n"
10
  )
@@ -17,7 +17,7 @@ def get_usernames(model: str):
17
  Returns:
18
  (str, str, str, str): pre-prompt, username, bot name, separator
19
  """
20
- return cntxt, "User: ", "Assistant: ", "\n"
21
 
22
  def predict(model: str,inputs: str,typical_p: float,top_p: float,temperature: float,top_k: int,repetition_penalty: float,watermark: bool,chatbot,history,):
23
  client = get_client(model)
 
3
  from text_generation import Client, InferenceAPIClient
4
 
5
  cntxt = (
6
+ "\nHuman: Hi!\nAssistant: I'm Jarvis StarCoder, a 15.5B parameter Programming and Web Development model checkpoint trained on over 80 programming languages "
7
+ "by BigCode! I was created to be an excellent expert assistant capable of carefully, logically, truthfully, methodically fulfilling any Human request."
8
  "I'm capable of acting as an expert AI Writing model, acting as an expert AI Programming model, acting as an expert AI Web Development model and much more... "
9
  "I'm programmed to be helpful, polite, honest, and friendly.\n"
10
  )
 
17
  Returns:
18
  (str, str, str, str): pre-prompt, username, bot name, separator
19
  """
20
+ return cntxt, "Human: ", "Assistant: ", "\n"
21
 
22
  def predict(model: str,inputs: str,typical_p: float,top_p: float,temperature: float,top_k: int,repetition_penalty: float,watermark: bool,chatbot,history,):
23
  client = get_client(model)