Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
8 |
|
9 |
# Define the prompt and system message
|
10 |
prompt = "Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
11 |
-
system_message = "You are an assistant bot who speaks based on given age and sex"
|
12 |
|
13 |
# Generate the response
|
14 |
-
response = model(f"[INST] {system_message} {prompt} [/INST]")
|
15 |
|
16 |
def respond(
|
17 |
message,
|
|
|
8 |
|
9 |
# Define the prompt and system message
|
10 |
prompt = "Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
11 |
+
system_message = "You are an assistant bot who speaks based on given age and sex. Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
12 |
|
13 |
# Generate the response
|
14 |
+
# response = model(f"[INST] {system_message} {prompt} [/INST]")
|
15 |
|
16 |
def respond(
|
17 |
message,
|