wangzhang commited on
Commit
26d2b3d
·
1 Parent(s): 14562a1

Update app.py

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