JustForFunn commited on
Commit
43dcfed
·
1 Parent(s): 38b0ecd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,13 +9,14 @@ model_path = "models/dreamlike-art/dreamlike-photoreal-2.0"
9
  model_prefix = "nsfw, photoreal style"
10
  model = gr.Interface.load(model_path)
11
 
12
- base_prompt = "give only one answer, limit is 36 words"
13
 
14
  # Define the OpenAI prompt completion function
15
  def generate_text(prompt):
16
  response = openai.Completion.create(
17
  model="davinci",
18
- prompt=f"{prompt}\n\nQ: {base_prompt}\nA:",
 
19
  max_tokens=60,
20
  n=1,
21
  stop=None,
 
9
  model_prefix = "nsfw, photoreal style"
10
  model = gr.Interface.load(model_path)
11
 
12
+ #base_prompt = "give only one answer, limit is 36 words"
13
 
14
  # Define the OpenAI prompt completion function
15
  def generate_text(prompt):
16
  response = openai.Completion.create(
17
  model="davinci",
18
+ #prompt=f"{prompt}\n\nQ: {base_prompt}\nA:",
19
+ prompt=prompt,
20
  max_tokens=60,
21
  n=1,
22
  stop=None,