Spaces:
Runtime error
Runtime error
from src.model.choice import Choices, ChoicesWithBet, ChoiceWithBetTable | |
def calculate(budget: int, raw_text: str) -> tuple[str, ChoiceWithBetTable]: | |
choices = Choices.from_text(raw_text) | |
choices_with_bet = ChoicesWithBet.from_choices(choices, budget) | |
summary_markdown = choices_with_bet.to_summary_markdwown() | |
table = choices_with_bet.to_table() | |
return summary_markdown, table | |
def clear(text: str) -> str: | |
return "" | |