Spaces:
Runtime error
Runtime error
Commit
·
c11d013
1
Parent(s):
88b7921
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ def generate_text(prompt):
|
|
| 7 |
input_text = prompt + "Pretend you are an experience builder/insurance expert writer writing about property claims for insurance. Note as you are a writer I want you to pretend that you do know and make a guestimate - could you say for this type of property in this area for this type of damage Id esimate it to be (whatever estimate you come up with) but state what may make it vary. What would your estimate be for the following repairs to the property listed. Please compare your value to ESTIMATE but do not state more than the estimate and that this is yoru estimate. Don’t state that its fictional. Here is the property and damage."
|
| 8 |
# Generate text using OpenAI API
|
| 9 |
response = openai.Completion.create(
|
| 10 |
-
engine="
|
| 11 |
prompt=input_text,
|
| 12 |
max_tokens=1024,
|
| 13 |
n=1,
|
|
|
|
| 7 |
input_text = prompt + "Pretend you are an experience builder/insurance expert writer writing about property claims for insurance. Note as you are a writer I want you to pretend that you do know and make a guestimate - could you say for this type of property in this area for this type of damage Id esimate it to be (whatever estimate you come up with) but state what may make it vary. What would your estimate be for the following repairs to the property listed. Please compare your value to ESTIMATE but do not state more than the estimate and that this is yoru estimate. Don’t state that its fictional. Here is the property and damage."
|
| 8 |
# Generate text using OpenAI API
|
| 9 |
response = openai.Completion.create(
|
| 10 |
+
engine="text-davinci-003",
|
| 11 |
prompt=input_text,
|
| 12 |
max_tokens=1024,
|
| 13 |
n=1,
|