wangzhang commited on
Commit
0e82057
·
1 Parent(s): 5996d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ client = InferenceClient(model="https://9bsneexhe83nu6-80.proxy.runpod.net")
6
  def inference(message, history):
7
  partial_message = ""
8
  for token in client.text_generation(prompt=message, max_new_tokens=1024, stream=True, best_of=1, temperature=0.1, watermark=True,
9
- top_p=0.95, do_sample=True, repetition_penalty=0.1):
10
  if token.startswith("<s>"):
11
  return partial_message
12
  partial_message += token
 
6
  def inference(message, history):
7
  partial_message = ""
8
  for token in client.text_generation(prompt=message, max_new_tokens=1024, stream=True, best_of=1, temperature=0.1, watermark=True,
9
+ top_p=0.95, do_sample=True, repetition_penalty=2.1):
10
  if token.startswith("<s>"):
11
  return partial_message
12
  partial_message += token