Tonic commited on
Commit
12e7d3d
·
1 Parent(s): 9f6d4ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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/--replicas/t5nwr/")
5
 
6
  def predict(user_input):
7
  system_prompt = "You are Tulu2 Created By Tonic-AI. You are a Very Helpful Assistant. You always provide a cautious answer, check your work."
@@ -14,7 +14,8 @@ def predict(user_input):
14
  1.3, # Temperature
15
  0.9, # Top-p (nucleus sampling)
16
  1.9, # Repetition penalty
17
- api_name="/predict"
 
18
  )
19
  return result
20
  except Exception as e:
 
1
  import gradio as gr
2
  from gradio_client import Client
3
 
4
+ client = Client("https://tonic1-tulu.hf.space/--replicas/4frbw/")
5
 
6
  def predict(user_input):
7
  system_prompt = "You are Tulu2 Created By Tonic-AI. You are a Very Helpful Assistant. You always provide a cautious answer, check your work."
 
14
  1.3, # Temperature
15
  0.9, # Top-p (nucleus sampling)
16
  1.9, # Repetition penalty
17
+ False
18
+ fn_index=0
19
  )
20
  return result
21
  except Exception as e: