Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from src.font import Font
|
|
| 10 |
logs_dir = "logs"
|
| 11 |
fonts_dir = "fonts"
|
| 12 |
|
| 13 |
-
def create_presentation(description: str, language: str):
|
| 14 |
# Select the appropriate prompt configuration based on the selected language
|
| 15 |
if language == "English":
|
| 16 |
prompt_config = en_gigachat_config
|
|
@@ -31,6 +31,7 @@ def create_presentation(description: str, language: str):
|
|
| 31 |
generate_image=generate_image,
|
| 32 |
prompt_config=prompt_config,
|
| 33 |
description=description,
|
|
|
|
| 34 |
font=font,
|
| 35 |
output_dir=output_dir,
|
| 36 |
)
|
|
|
|
| 10 |
logs_dir = "logs"
|
| 11 |
fonts_dir = "fonts"
|
| 12 |
|
| 13 |
+
def create_presentation(description: str, slides_num: int, language: str):
|
| 14 |
# Select the appropriate prompt configuration based on the selected language
|
| 15 |
if language == "English":
|
| 16 |
prompt_config = en_gigachat_config
|
|
|
|
| 31 |
generate_image=generate_image,
|
| 32 |
prompt_config=prompt_config,
|
| 33 |
description=description,
|
| 34 |
+
slides_num=slides_num,
|
| 35 |
font=font,
|
| 36 |
output_dir=output_dir,
|
| 37 |
)
|