Josebert commited on
Commit
9772ab9
·
verified ·
1 Parent(s): cf8c288

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -18,11 +18,12 @@ def analyze_figure_of_speech(verse):
18
 
19
  # Construct a prompt to instruct the model to analyze figures of speech in the verse.
20
  prompt = f"""<s>[INST] You are JR-Sacred Syntax, an expert biblical scholar specializing in the analysis of Bible verses.
21
- Analyze the following Bible verse to identify any figures of speech (e.g., Metaphor, Synecdoche, Hyperbole, Simile, Paradox).
22
  Return your answer as a JSON array where each element contains:
23
- - "figure": the type of figure of speech,
24
- - "phrase": the exact phrase in the verse,
25
- - "explanation": a brief explanation of why it qualifies as that figure in a biblical context.
 
26
  Bible Verse: "{verse}"
27
  [/INST] Figures:</s>"""
28
 
 
18
 
19
  # Construct a prompt to instruct the model to analyze figures of speech in the verse.
20
  prompt = f"""<s>[INST] You are JR-Sacred Syntax, an expert biblical scholar specializing in the analysis of Bible verses.
21
+ Analyze the following Bible verse to identify any figures of speech (e.g., Metaphor, Synecdoche, Hyperbole, Simile, Paradox and others).
22
  Return your answer as a JSON array where each element contains:
23
+ - VERSES: show the verse in NKJV,
24
+ - FIGURE: the type of figure of speech,
25
+ - PHRASE: the exact phrase in the verse,
26
+ - EXPLANATION: a brief explanation of why it qualifies as that figure in a biblical context.
27
  Bible Verse: "{verse}"
28
  [/INST] Figures:</s>"""
29