Akash473 commited on
Commit
68ae4d8
·
verified ·
1 Parent(s): 31622f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ Remember to maintain a natural and polite conversational tone throughout the int
33
  def format_prompt(message, history):
34
  # Start with the initial prompt for the first interaction
35
  if not history:
36
- return message
37
 
38
  prompt = "<s>"
39
  for user_prompt, bot_response in history:
@@ -116,7 +116,7 @@ additional_inputs = [
116
 
117
  gr.ChatInterface(
118
  fn=generate,
119
- inputs=[gr.Textbox(label="Interviewer", type="text", default=initial_prompt)],
120
  outputs=gr.Chatbot(
121
  show_label=False,
122
  show_share_button=False,
 
33
  def format_prompt(message, history):
34
  # Start with the initial prompt for the first interaction
35
  if not history:
36
+ return initial_prompt
37
 
38
  prompt = "<s>"
39
  for user_prompt, bot_response in history:
 
116
 
117
  gr.ChatInterface(
118
  fn=generate,
119
+ inputs=[gr.Textbox(label="Interviewer", type="text")],
120
  outputs=gr.Chatbot(
121
  show_label=False,
122
  show_share_button=False,