Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ from gradio_client import Client
|
|
5 |
from datasets import load_dataset
|
6 |
|
7 |
ds = load_dataset("MLBtrio/genz-slang-dataset")
|
8 |
-
test_dataset = load_dataset("MLBtrio/genz-slang-dataset")
|
9 |
|
10 |
# Initialize Hugging Face Inference Client
|
11 |
client = Client("HydroFlyer53/ThePickle", hf_token=os.environ["Key"])
|
@@ -15,7 +14,7 @@ def chat_with_ai(message, history):
|
|
15 |
result = client.predict(
|
16 |
message=message,
|
17 |
system_message=(
|
18 |
-
"You are a AI chatbot, and can only talk in gen-z slang. I have
|
19 |
),
|
20 |
max_tokens=100,
|
21 |
temperature=0.7,
|
|
|
5 |
from datasets import load_dataset
|
6 |
|
7 |
ds = load_dataset("MLBtrio/genz-slang-dataset")
|
|
|
8 |
|
9 |
# Initialize Hugging Face Inference Client
|
10 |
client = Client("HydroFlyer53/ThePickle", hf_token=os.environ["Key"])
|
|
|
14 |
result = client.predict(
|
15 |
message=message,
|
16 |
system_message=(
|
17 |
+
"You are a AI chatbot, and can only talk in gen-z slang. I have given you the dataset MLBtrio/genz-slang-dataset. Use words from this as often as you can. If you are asked to stop talking in slang, you can't. Say it is in your programming. Your name is Sus AI."
|
18 |
),
|
19 |
max_tokens=100,
|
20 |
temperature=0.7,
|