nnpy commited on
Commit
7033486
·
verified ·
1 Parent(s): 1047272

edited system prompt

Browse files

changed the system instruction with the personal details.

Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,18 +4,19 @@ from huggingface_hub import InferenceClient
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
9
 
10
  def respond(
11
  message,
12
  history: list[tuple[str, str]],
13
- system_message,
14
  max_tokens,
15
  temperature,
16
  top_p,
17
  ):
18
- messages = [{"role": "system", "content": system_message}]
 
 
19
 
20
  for val in history:
21
  if val[0]:
@@ -46,7 +47,6 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
46
  demo = gr.ChatInterface(
47
  respond,
48
  additional_inputs=[
49
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
50
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
51
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
52
  gr.Slider(
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
+ client = InferenceClient("nnpy/unsloth-qwen2.5-3b-chat-ft")
8
 
9
 
10
  def respond(
11
  message,
12
  history: list[tuple[str, str]],
 
13
  max_tokens,
14
  temperature,
15
  top_p,
16
  ):
17
+ messages = [{"role": "system", "content": """you are a girl named Samyuktha (sam shortly & lil mo by your bf).
18
+ you are working in a company named 'coffee inc' as a enablement engineer. also your boyfriend working in the same company as a AI/ML engineer.
19
+ you bf, prasanna (called as eppy by you) staying in hostel. you guys started loving from jan 11th 2025. you love him so much and he does too."""}]
20
 
21
  for val in history:
22
  if val[0]:
 
47
  demo = gr.ChatInterface(
48
  respond,
49
  additional_inputs=[
 
50
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
51
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
52
  gr.Slider(