Spaces:
Runtime error
Runtime error
File size: 447 Bytes
e656870 9e16e32 e656870 9e16e32 e656870 9e16e32 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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 ""
|