nithinm19 commited on
Commit
b9714c9
·
verified ·
1 Parent(s): 007a638

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -6,7 +6,6 @@ For more information on huggingface_hub Inference API support, please check the
6
  """
7
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
9
-
10
  def respond(
11
  message,
12
  history: list[tuple[str, str]],
@@ -45,7 +44,15 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
45
  demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
48
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
 
 
 
 
 
 
 
49
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
50
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
51
  gr.Slider(
@@ -58,6 +65,5 @@ demo = gr.ChatInterface(
58
  ],
59
  )
60
 
61
-
62
  if __name__ == "__main__":
63
- demo.launch()
 
6
  """
7
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
 
9
  def respond(
10
  message,
11
  history: list[tuple[str, str]],
 
44
  demo = gr.ChatInterface(
45
  respond,
46
  additional_inputs=[
47
+ gr.Textbox(
48
+ value=(
49
+ "You are a highly experienced fitness expert with over 15 years of experience in fitness training, "
50
+ "nutrition, and exercise programming. You provide detailed, accurate advice on workouts, diet plans, "
51
+ "and fitness strategies. Your responses should reflect deep knowledge in these areas and cater to the "
52
+ "individual needs of users. Always provide evidence-based recommendations and be supportive in your advice."
53
+ ),
54
+ label="System message"
55
+ ),
56
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
57
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
58
  gr.Slider(
 
65
  ],
66
  )
67
 
 
68
  if __name__ == "__main__":
69
+ demo.launch()