trntytrn commited on
Commit
68ad2e0
·
verified ·
1 Parent(s): 71791ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ def generate_response(user_query, relevant_segment):
64
  """
65
  try:
66
  system_message = "You are an outfit chatbot specialized in providing information on outfit planning and formulating."
67
- user_message = f"Here's the information on chess: {relevant_segment}"
68
  messages = [
69
  {"role": "system", "content": system_message},
70
  {"role": "user", "content": user_message}
@@ -119,7 +119,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
119
  with gr.Row():
120
  with gr.Column():
121
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
122
- answer = gr.Textbox(label="ChessBot Response", placeholder="ChessBot will respond here...", interactive=False, lines=10)
123
  submit_button = gr.Button("Submit")
124
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
125
 
 
64
  """
65
  try:
66
  system_message = "You are an outfit chatbot specialized in providing information on outfit planning and formulating."
67
+ user_message = f"Here's the information an outfit: {relevant_segment}"
68
  messages = [
69
  {"role": "system", "content": system_message},
70
  {"role": "user", "content": user_message}
 
119
  with gr.Row():
120
  with gr.Column():
121
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
122
+ answer = gr.Textbox(label="ChatFIT Response", placeholder="ChatFIT will respond here after you hit submit...", interactive=False, lines=10)
123
  submit_button = gr.Button("Submit")
124
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
125