sergiomar73 commited on
Commit
9a635c6
1 Parent(s): a8b1af3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,7 +15,8 @@ def classificate_with_gpt3(text, labels, engine="text-similarity-davinci-001"):
15
  model=engine,
16
  prompt=prompt,
17
  temperature=0.7,
18
- max_tokens=1000,
 
19
  top_p=1,
20
  frequency_penalty=0,
21
  presence_penalty=0
@@ -24,7 +25,7 @@ def classificate_with_gpt3(text, labels, engine="text-similarity-davinci-001"):
24
  return completion
25
 
26
  def gpt3_zero_shot_classification(text, labels):
27
- completion = classificate_with_gpt3(text, labels)
28
  return completion
29
 
30
  # Gradio UI
 
15
  model=engine,
16
  prompt=prompt,
17
  temperature=0.7,
18
+ max_tokens=10,
19
+ stop: ["\n"],
20
  top_p=1,
21
  frequency_penalty=0,
22
  presence_penalty=0
 
25
  return completion
26
 
27
  def gpt3_zero_shot_classification(text, labels):
28
+ completion = classificate_with_gpt3(text, labels, engine="text-babbage-001")
29
  return completion
30
 
31
  # Gradio UI