mbosse99 commited on
Commit
a04917c
·
verified ·
1 Parent(s): 268fefc

adjusted sentence length

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,11 +13,11 @@ def create_article(length_option, articles, params):
13
  article_string = "; ".join(f"Artikel {index + 1}: {artikel}" for index, artikel in enumerate(articles))
14
 
15
  if length_option == "Kurz":
16
- length = 3
17
- elif length_option == "Mittel":
18
  length = 6
 
 
19
  elif length_option == "Lang":
20
- length = 9
21
 
22
  openai.api_key = os.environ.get("OPEN_API_KEY")
23
  openai.api_base = os.environ.get("OPEN_API_BASE")
 
13
  article_string = "; ".join(f"Artikel {index + 1}: {artikel}" for index, artikel in enumerate(articles))
14
 
15
  if length_option == "Kurz":
 
 
16
  length = 6
17
+ elif length_option == "Mittel":
18
+ length = 12
19
  elif length_option == "Lang":
20
+ length = 20
21
 
22
  openai.api_key = os.environ.get("OPEN_API_KEY")
23
  openai.api_base = os.environ.get("OPEN_API_BASE")