Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
-
|
| 24 |
-
-
|
| 25 |
-
-
|
|
|
|
| 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 |
|