calcuis commited on
Commit
56d90b7
1 Parent(s): f97ff82

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +1 -5
chat.py CHANGED
@@ -1,13 +1,9 @@
1
  from ctransformers import AutoModelForCausalLM
2
  llm = AutoModelForCausalLM.from_pretrained("chat.gguf")
3
-
4
  while True:
5
  ask = input("Enter a Question (Q for quit): ")
6
-
7
  if ask == "q" or ask == "Q":
8
- break
9
-
10
  ans = llm(ask, max_new_tokens=1024)
11
  print(ask+ans)
12
-
13
  print("Goodbye!")
 
1
  from ctransformers import AutoModelForCausalLM
2
  llm = AutoModelForCausalLM.from_pretrained("chat.gguf")
 
3
  while True:
4
  ask = input("Enter a Question (Q for quit): ")
 
5
  if ask == "q" or ask == "Q":
6
+ break
 
7
  ans = llm(ask, max_new_tokens=1024)
8
  print(ask+ans)
 
9
  print("Goodbye!")