Josebert commited on
Commit
d84b242
·
verified ·
1 Parent(s): eebcadd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,14 +20,14 @@ def analyze_figure_of_speech(verse):
20
  prompt = f"""<s>[INST] You are JR-Sacred Syntax, an expert biblical scholar specializing in Bible analysis.
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 includes:
23
- - "verses": the Bible verse reference,
24
  - "figure": the type of figure of speech,
25
  - "phrase": the exact phrase from the verse,
26
  - "explanation": a brief explanation in biblical context.
27
  Bible Verse: "{verse}"
28
  [/INST] Figures:</s>"""
29
 
30
- payload = {"inputs": prompt, "parameters": {"max_new_tokens": 250, "temperature": 0.7, "top_p": 0.9}}
31
 
32
  try:
33
  response = requests.post(API_URL, headers=HEADERS, json=payload)
 
20
  prompt = f"""<s>[INST] You are JR-Sacred Syntax, an expert biblical scholar specializing in Bible analysis.
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 includes:
23
+ - "verses": give the Bible verse in NJV,
24
  - "figure": the type of figure of speech,
25
  - "phrase": the exact phrase from the verse,
26
  - "explanation": a brief explanation in biblical context.
27
  Bible Verse: "{verse}"
28
  [/INST] Figures:</s>"""
29
 
30
+ payload = {"inputs": prompt, "parameters": {"max_new_tokens": 250, "temperature": 0.5, "top_p": 0.9}}
31
 
32
  try:
33
  response = requests.post(API_URL, headers=HEADERS, json=payload)