briankchan commited on
Commit
4c32c48
·
1 Parent(s): fc039dd

Update description of body paragraph checks

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -46,6 +46,15 @@ Use this output format:
46
  - [textual evidence 2] - outside source"""
47
 
48
 
 
 
 
 
 
 
 
 
 
49
  def load_chain(api_key, api_type):
50
  if api_key == "" or api_key.isspace():
51
  if api_type == "OpenAI":
@@ -276,13 +285,7 @@ with demo:
276
  label="Output"
277
  )
278
  with gr.Tab("Body Paragraph"):
279
- gr.Markdown("""1. identifies the topic sentence
280
- 2. outlines key points
281
- 3. checks for quotes/concrete details (e.g., textual evidence)
282
- 4. suggests topic sentence improvements
283
- 5. checks that the outline matches the topic
284
- 6. determines which key point from the outline that each textual evidence supports
285
- 7. checks whether the quotes/evidence are from the book""")
286
  title = gr.Textbox(
287
  label="Book Title"
288
  )
 
46
  - [textual evidence 2] - outside source"""
47
 
48
 
49
+ BODY_DESCRIPTION = """1. identifies the topic sentence
50
+ 2. outlines key points
51
+ 3. checks for supporting evidence (e.g., quotes, summaries, and concrete details)
52
+ 4. suggests topic sentence improvements
53
+ 5. checks that the key points match the paragraph topic
54
+ 6. determines which key point each piece of evidence supports
55
+ 7. checks whether each evidence is from the book or from an outside source"""
56
+
57
+
58
  def load_chain(api_key, api_type):
59
  if api_key == "" or api_key.isspace():
60
  if api_type == "OpenAI":
 
285
  label="Output"
286
  )
287
  with gr.Tab("Body Paragraph"):
288
+ gr.Markdown(BODY_DESCRIPTION)
 
 
 
 
 
 
289
  title = gr.Textbox(
290
  label="Book Title"
291
  )