Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
|
|
|
| 3 |
|
|
|
|
| 4 |
# === SETTINGS YOU CAN CHANGE IN THE CODE ===
|
| 5 |
-
SYSTEM_MESSAGE = "You are a chatbot that has to use gen-z slang as much as you can."
|
| 6 |
MAX_TOKENS = 512
|
| 7 |
TEMPERATURE = 0.7
|
| 8 |
TOP_P = 0.95
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
+
from datasets import load_dataset
|
| 4 |
|
| 5 |
+
ds = load_dataset("MLBtrio/genz-slang-dataset")
|
| 6 |
# === SETTINGS YOU CAN CHANGE IN THE CODE ===
|
| 7 |
+
SYSTEM_MESSAGE = "You are a chatbot that has to use gen-z slang as much as you can. Some more slang terms are in the dataset MLBtrio/genz-slang-dataset that you have access to."
|
| 8 |
MAX_TOKENS = 512
|
| 9 |
TEMPERATURE = 0.7
|
| 10 |
TOP_P = 0.95
|