Spaces:
Sleeping
Sleeping
Commit
·
66f3100
1
Parent(s):
f8031d3
app_initialize
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from gpt4all import GPT4All
|
| 2 |
+
model = GPT4All("wizardlm-13b-v1.1-superhot-8k.ggmlv3.q4_0.bin")
|
| 3 |
+
|
| 4 |
+
while True:
|
| 5 |
+
user_input = input("You: ")
|
| 6 |
+
if user_input.lower() == 'exit':
|
| 7 |
+
break
|
| 8 |
+
response = model.generate(user_input)
|
| 9 |
+
print("Chatbot:", response)
|