Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio_client import Client
|
3 |
|
4 |
-
client = Client("https://tonic1-
|
5 |
|
6 |
def predict(user_input):
|
7 |
-
system_prompt = "You are
|
8 |
|
9 |
try:
|
10 |
result = client.predict(
|
@@ -24,8 +24,8 @@ iface = gr.Interface(
|
|
24 |
fn=predict,
|
25 |
inputs=gr.Textbox(label="User Input"),
|
26 |
outputs=gr.Textbox(label="Result"),
|
27 |
-
title="👋🏻👋🏻Welcome to Tonic's
|
28 |
-
description="This app makes it easy for use [
|
29 |
)
|
30 |
|
31 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from gradio_client import Client
|
3 |
|
4 |
+
client = Client("https://tonic1-tulu.hf.space/--replicas/wqlqb/")
|
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."
|
8 |
|
9 |
try:
|
10 |
result = client.predict(
|
|
|
24 |
fn=predict,
|
25 |
inputs=gr.Textbox(label="User Input"),
|
26 |
outputs=gr.Textbox(label="Result"),
|
27 |
+
title="👋🏻👋🏻Welcome to Tonic's 🌷Tulu2EasyChat",
|
28 |
+
description="This app makes it easy for use [Tulu](https://huggingface.co/allenai/tulu-2-dpo-70b) and also to make a discordbot. Join us on our active [builder's server on discord](https://discord.gg/9XK7zXR7Ke) [add this space as a discord bot on your server](https://discord.com/oauth2/authorize?client_id=1176628808212828231&scope=bot+applications.commands&permissions=326417525824) ."
|
29 |
)
|
30 |
|
31 |
iface.launch()
|