Skip to content

Commit 9bc299c

Browse files
committed
fix imports
1 parent 4f4aa6d commit 9bc299c

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

powerpoint_generative_ai/ppt_analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import openai
22
import pinecone
33
from typing import List, Callable
4-
from powerpoint_generative_ai.ppt.ppt_loader import PPTLoader
5-
from powerpoint_generative_ai.utils.pinecone_utils import index_data, search_pinecone_index
4+
from .ppt.ppt_loader import PPTLoader
5+
from .utils.pinecone_utils import index_data, search_pinecone_index
66

77
class PowerPointAnalyzer:
88
"""Analyze PPT files."""

powerpoint_generative_ai/ppt_generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import json
22
import openai
3-
from powerpoint_generative_ai.domain.constants import MAX_CONTENT_LENGTH
4-
from powerpoint_generative_ai.domain.exceptions import InvalidModel
5-
from powerpoint_generative_ai.domain.prompts import (
3+
from .domain.constants import MAX_CONTENT_LENGTH
4+
from .domain.exceptions import InvalidModel
5+
from .domain.prompts import (
66
DECK_CREATION_SYSTEM_PROMPT,
77
CHART_DATA_IDENTIFICATION,
88
BEST_CHART_FOR_DATA_SYSTEM_PROMPT,
99
TITLE_GEN_SYSTEM_PROMPT,
1010
FILENAME_SYSTEM_PROMPT
1111
)
12-
from powerpoint_generative_ai.ppt.ppt_creator import PowerPointCreator
13-
from powerpoint_generative_ai.utils.utils import format_simple_message_for_gpt, call_gpt_with_backoff
12+
from .ppt.ppt_creator import PowerPointCreator
13+
from .utils.utils import format_simple_message_for_gpt, call_gpt_with_backoff
1414

1515
class PowerPointGenerator:
1616
def __init__(self, openai_key: str, model: str = "gpt-4"):

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
setup(
33
name = 'powerpoint_generative_ai',
44
packages = ['powerpoint_generative_ai'],
5-
version = '0.1.3',
5+
version = '0.1.4',
66
license='MIT',
77
description = 'Library written by Width.Ai. Streamlines the utilization of GPT models for automatic PowerPoint content generation. Also offers semantic searches on slide content, enabling you to quickly pinpoint relevant information',
88
author = 'Patrick Hennis',
99
author_email = '[email protected]',
1010
url = 'https://github.com/Width-ai/powerpoint-generative-ai',
11-
download_url = 'https://github.com/Width-ai/powerpoint-generative-ai/archive/refs/tags/v0.1.3.tar.gz',
11+
download_url = 'https://github.com/Width-ai/powerpoint-generative-ai/archive/refs/tags/v0.1.4.tar.gz',
1212
keywords = ['LLM', 'Semantic Search', 'PowerPoints'],
1313
install_requires=[
1414
'langchain',
@@ -27,3 +27,5 @@
2727
'Programming Language :: Python :: 3.10',
2828
],
2929
)
30+
31+
python3 setup.py sdist && twine upload dist/*

0 commit comments

Comments
 (0)