There was an error while loading. Please reload this page.
1 parent 1bc8a28 commit 0456b69Copy full SHA for 0456b69
main.py
@@ -39,18 +39,17 @@ def main():
39
sys.exit(1)
40
41
chatbot = Chatbot(config={"access_token": access_token})
42
- problem = input("Explain your problem here\n").strip()
+ problem = ""
43
+ print("Explain your problem here\n")
44
+ while problem == "":
45
+ problem = input().strip()
46
conversation_id = None
47
iterations = 2
48
total_work_units = 5 + iterations * 3
49
progress_bar = tqdm(
50
total=total_work_units, desc="Processing", ncols=100, ascii=True
51
)
52
- if not problem:
- print("Problem is empty", file=sys.stderr)
- return
53
-
54
# prompt1
55
three_ideas, conversation_id = chatgpt_answer_to_prompt_file(
56
chatbot, "prompts/prompt1", "PROBLEM", problem
0 commit comments