Spaces:
Running
Running
adjusted sentence length
Browse files
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 =
|
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")
|