JustForFunn commited on
Commit
af8cd7a
·
1 Parent(s): 6168bbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 young girl"
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=36,
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,