mayankchugh-learning commited on
Commit
13f6f65
·
verified ·
1 Parent(s): 9d3af87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,