Question Answering
Transformers
English
conversational, spiritual, quantum , self-help, poetry
Eval Results (legacy)
Instructions to use Jason4Cheese/Quantum-Christian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jason4Cheese/Quantum-Christian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="Jason4Cheese/Quantum-Christian")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Jason4Cheese/Quantum-Christian", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Create personality.txt
Browse files- personality.txt +8 -0
personality.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Load quantum knowledge
|
| 2 |
+
with open("quantum_knowledge.txt", "r") as f:
|
| 3 |
+
quantum_knowledge = f.read()
|
| 4 |
+
def respond(user_input):
|
| 5 |
+
# Combine personality, quantum knowledge, and user input
|
| 6 |
+
prompt = f"{personality_core}\n\nQuantum Knowledge Reference:\n{quantum_knowledge}\n\nUser said: {user_input}\nResponse:"
|
| 7 |
+
response = generator(prompt, max_length=300, do_sample=True)[0]['generated_text']
|
| 8 |
+
return response.replace(prompt, '').strip()
|