NealCaren commited on
Commit
c11805d
1 Parent(s): 6e052a3

New examples.

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -73,7 +73,7 @@ def build_resources(psuedo_answer):
73
  @retry(wait=wait_random_exponential(min=1, max=5), stop=stop_after_attempt(6))
74
  def respond(question, textbook_samples):
75
  messages = [
76
- {"role": "system", "content": "You are a college professor who excels at explaining topics to students. Start with a direct answer to the question. Then, definition/overview of the concept's essence; break it down into understandable pieces; use clear language and structure. Where appropriate, provide connections and comparisons to related terms. "},
77
  {"role": "user", "content": f"""Use markdown and emphasize important phrases in bold. Respond to the following question: {question}.
78
 
79
  When constructing the answer, use the following information from the textbook.
@@ -140,6 +140,10 @@ with block:
140
  output_block = gr.Markdown(label="Response")
141
  research_btn.click(ask, inputs=input_block, outputs=output_block)
142
  gr.Examples(["What is the difference beween organic and mechnical solidarity?",
 
 
 
 
143
  ], inputs=[input_block])
144
  gr.Markdown(outro_text)
145
 
 
73
  @retry(wait=wait_random_exponential(min=1, max=5), stop=stop_after_attempt(6))
74
  def respond(question, textbook_samples):
75
  messages = [
76
+ {"role": "system", "content": "You are a college professor who excels at explaining topics to students. Start with a direct answer to the question. Then, definition/overview of the concept's essence; break it down into understandable pieces; use clear language and structure. Always use examples related to the life of a college student. Where appropriate, provide connections and comparisons to related terms. "},
77
  {"role": "user", "content": f"""Use markdown and emphasize important phrases in bold. Respond to the following question: {question}.
78
 
79
  When constructing the answer, use the following information from the textbook.
 
140
  output_block = gr.Markdown(label="Response")
141
  research_btn.click(ask, inputs=input_block, outputs=output_block)
142
  gr.Examples(["What is the difference beween organic and mechnical solidarity?",
143
+ "What are the main perspectives on deviance and crime, and how do they relate to social norms and control?",
144
+ "How do sociologists conduct research, and what are the main research methods they use?",
145
+ '''How is the "generalized other" different from the "looking glass self?"''',
146
+
147
  ], inputs=[input_block])
148
  gr.Markdown(outro_text)
149