Spaces:
Runtime error
Runtime error
Commit ·
d90ab14
1
Parent(s): ecfbee1
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ openai.api_key = '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'
|
|
| 4 |
|
| 5 |
def generate_text(prompt):
|
| 6 |
# Add custom text to the prompt
|
| 7 |
-
input_text = prompt + "You are an expert with many years experience in the insurance loss adjusting business. Can you give your expert opinion on the question or statement made at the start of this prompt. Make it accurate, but written in a simple and clear style. Please provide references or insurance law precedents where possible." # Generate text using OpenAI API
|
| 8 |
response = openai.Completion.create(
|
| 9 |
engine="text-davinci-002",
|
| 10 |
prompt=input_text,
|
|
|
|
| 4 |
|
| 5 |
def generate_text(prompt):
|
| 6 |
# Add custom text to the prompt
|
| 7 |
+
input_text = prompt + "You are an expert with many years experience in the insurance loss adjusting business. Can you give your expert opinion on the question or statement made at the start of this prompt. Answer it in terms of the laws regulations and terms of the insurance industry. Make it accurate, but written in a simple and clear style. Please provide references or insurance law precedents where possible." # Generate text using OpenAI API
|
| 8 |
response = openai.Completion.create(
|
| 9 |
engine="text-davinci-002",
|
| 10 |
prompt=input_text,
|