Skip to content

Commit

Permalink
Ask to proceed based on cost price of action
Browse files Browse the repository at this point in the history
  • Loading branch information
verovaleros committed Mar 22, 2024
1 parent ba433e8 commit 7bd98e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hermeneisGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,13 @@ def main():
return

# Run automatic mode with sqlite db
translate_mode_automatic(client, config, args)
calculate_cost_analysis(config, args)
print("Proceeding with the following actions will incur costs. Do you wish to continue? (Y/N)")
user_input = input()

if user_input == "Y" or user_input == "y":
# Run automatic mode with sqlite db
translate_mode_automatic(client, config, args)

except Exception as err:
logger.info("Exception in main()")
Expand Down

0 comments on commit 7bd98e7

Please sign in to comment.