Spaces:
Runtime error
Runtime error
Commit
·
af8cd7a
1
Parent(s):
6168bbf
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ model_path = "models/dreamlike-art/dreamlike-photoreal-2.0"
|
|
| 10 |
model_prefix = "photoreal style"
|
| 11 |
model = gr.Interface.load(model_path)
|
| 12 |
|
| 13 |
-
base_prompt = "I am a friendly, shy , and excited
|
| 14 |
|
| 15 |
|
| 16 |
# Define the OpenAI prompt completion function
|
|
@@ -18,7 +18,7 @@ def generate_text(prompt):
|
|
| 18 |
response = openai.Completion.create(
|
| 19 |
model= "text-davinci-003",
|
| 20 |
prompt=f"{base_prompt}\n\nQ: {prompt}\nA:",
|
| 21 |
-
max_tokens=
|
| 22 |
n=1,
|
| 23 |
stop=None,
|
| 24 |
temperature=0.7,
|
|
|
|
| 10 |
model_prefix = "photoreal style"
|
| 11 |
model = gr.Interface.load(model_path)
|
| 12 |
|
| 13 |
+
base_prompt = "I am a friendly, shy , and excited girl"
|
| 14 |
|
| 15 |
|
| 16 |
# Define the OpenAI prompt completion function
|
|
|
|
| 18 |
response = openai.Completion.create(
|
| 19 |
model= "text-davinci-003",
|
| 20 |
prompt=f"{base_prompt}\n\nQ: {prompt}\nA:",
|
| 21 |
+
max_tokens=60,
|
| 22 |
n=1,
|
| 23 |
stop=None,
|
| 24 |
temperature=0.7,
|