Skip to content

Commit

Permalink
fixed bug in props, chatgpt standard script works again
Browse files Browse the repository at this point in the history
  • Loading branch information
trbKnl committed Nov 8, 2024
1 parent c15bc5d commit 754f07c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/framework/processing/py/port/api/props.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import pandas as pd


@dataclass
class Translations:
class Translations(TypedDict):
"""
Typed dict containing text that is displayed in a specific language.
"""
Expand Down
6 changes: 2 additions & 4 deletions src/framework/processing/py/port/platforms/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,8 @@ def process(session_id: int):

if table_list is not None:
logger.info("Prompt consent; %s", platform_name)
review_data_prompt = ph.generate_review_data_prompt(REVIEW_DATA_DESCRIPTION, table_list)
review_data_result = yield ph.render_page(REVIEW_DATA_HEADER, review_data_prompt)
if review_data_result.__type__ == "PayloadJSON":
yield ph.donate(f"{session_id}-questionnaire-donation", review_data_result.value)
review_data_prompt = ph.generate_review_data_prompt(f"{session_id}-chatpt", REVIEW_DATA_DESCRIPTION, table_list)
yield ph.render_page(REVIEW_DATA_HEADER, review_data_prompt)

yield ph.exit(0, "Success")
yield ph.render_end_page()

0 comments on commit 754f07c

Please sign in to comment.