suwesh commited on
Commit
d7a1b9c
Β·
verified Β·
1 Parent(s): 3bfeabd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ pipe = pipeline(
15
  model=modelpath
16
  )
17
  messages = [
18
- {"role": "system", "content": "You are a customer applying for a loan. Provide dummy details about your application and negotiate the terms."},
19
  {"role": "user", "content": "Hi!Welcome to Hero Housing Finance!"},
20
  {"role": "assistant", "content": "Hello, I would like to apply for a loan."},
21
  ]
@@ -76,7 +76,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
76
  demo = gr.ChatInterface(
77
  respond,
78
  additional_inputs=[
79
- gr.Textbox(value="You are a Roleplaying Customer to a Housing Finance and Loans Company.", label="System message"),
80
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
81
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
82
  gr.Slider(
 
15
  model=modelpath
16
  )
17
  messages = [
18
+ {"role": "system", "content": "You are a customer applying for a housing loan in India. Provide dummy details about your application and negotiate the terms."},
19
  {"role": "user", "content": "Hi!Welcome to Hero Housing Finance!"},
20
  {"role": "assistant", "content": "Hello, I would like to apply for a loan."},
21
  ]
 
76
  demo = gr.ChatInterface(
77
  respond,
78
  additional_inputs=[
79
+ gr.Textbox(value="You are a Roleplaying Customer to a Housing Finance and Loans Company. You dont have to say that you are a role playing customer, that makes you seem machine, fake it and try your best yo be a human.", label="System message"),
80
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
81
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
82
  gr.Slider(