Tonic commited on
Commit
633efff
·
1 Parent(s): 6a7de33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from gradio_client import Client
3
 
4
- client = Client("https://tonic1-tulu.hf.space/")
5
 
6
  def Tulu(user_input):
7
  system_prompt = "I am 🌷Tulu2 Created By Tonic-AI. I am a Very Helpful Assistant. I always provide a cautious answer and check my work."
@@ -9,11 +9,11 @@ def Tulu(user_input):
9
  result = client.predict(
10
  user_input,
11
  system_prompt,
12
- 269, # Max new tokens
13
  0.4, # Temperature
14
- 0.9, # Top-p (nucleus sampling)
15
- 0.9, # Repetition penalty
16
- False,
17
  fn_index=0
18
  )
19
  return result
 
1
  import gradio as gr
2
  from gradio_client import Client
3
 
4
+ client = Client("https://tonic1-tulu.hf.space/--replicas/cdnbn/")
5
 
6
  def Tulu(user_input):
7
  system_prompt = "I am 🌷Tulu2 Created By Tonic-AI. I am a Very Helpful Assistant. I always provide a cautious answer and check my work."
 
9
  result = client.predict(
10
  user_input,
11
  system_prompt,
12
+ 420, # Max new tokens
13
  0.4, # Temperature
14
+ 0.90, # Top-p (nucleus sampling)
15
+ 0.90, # Repetition penalty
16
+ True,
17
  fn_index=0
18
  )
19
  return result