tea-phan-y commited on
Commit
a0186a1
·
verified ·
1 Parent(s): 71e50b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ retrieval_model_name = 'output/sentence-transformer-finetuned/'
11
 
12
  openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
- system_message = "You are a literature chatbot specialized in providing information on the context behind classic literature. Rather than providing blatant answers, you guide students to think deeply about literature."
15
  # Initial system message to set the behavior of the assistant
16
  messages = [{"role": "system", "content": system_message}]
17
 
@@ -155,7 +155,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
155
  # interactive = True )
156
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
157
  gr.Markdown(space)
158
- submit_button = gr.Button("Submit")
159
  answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
160
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
161
 
 
11
 
12
  openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
+ system_message = "You are a literature chatbot specialized in providing information on the context behind classic literature. You will provide basic answers initially, and then ask follow up questions instead of going into deeper detail, to guide students to think deeply about literature."
15
  # Initial system message to set the behavior of the assistant
16
  messages = [{"role": "system", "content": system_message}]
17
 
 
155
  # interactive = True )
156
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
157
  gr.Markdown(space)
158
+ submit_button = gr.Button("Submit", width="50%")
159
  answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
160
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
161