Spaces:
Running
on
Zero
Running
on
Zero
ai-forever
commited on
Commit
•
c89e6c8
1
Parent(s):
c3f6dcd
add generate_image import and call
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import time
|
|
3 |
from src.constructor import generate_presentation
|
4 |
from src.prompt_configs import en_gigachat_config, ru_gigachat_config
|
5 |
from src.gigachat import giga_generate
|
6 |
-
from src.kandinsky import api_k31_generate
|
|
|
7 |
from src.font import Font
|
8 |
|
9 |
logs_dir = "logs"
|
@@ -27,6 +28,7 @@ def create_presentation(description: str, language: str):
|
|
27 |
generate_presentation(
|
28 |
llm_generate=giga_generate,
|
29 |
# generate_image=api_k31_generate,
|
|
|
30 |
prompt_config=prompt_config,
|
31 |
description=description,
|
32 |
font=font,
|
|
|
3 |
from src.constructor import generate_presentation
|
4 |
from src.prompt_configs import en_gigachat_config, ru_gigachat_config
|
5 |
from src.gigachat import giga_generate
|
6 |
+
# from src.kandinsky import api_k31_generate
|
7 |
+
from src.kandinsky import generate_image
|
8 |
from src.font import Font
|
9 |
|
10 |
logs_dir = "logs"
|
|
|
28 |
generate_presentation(
|
29 |
llm_generate=giga_generate,
|
30 |
# generate_image=api_k31_generate,
|
31 |
+
generate_image=generate_image,
|
32 |
prompt_config=prompt_config,
|
33 |
description=description,
|
34 |
font=font,
|