Update app.py
Browse files
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/
|
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 |
-
|
|
|
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:
|