Update README.md
Browse files
README.md
CHANGED
|
@@ -17,4 +17,13 @@ base_model:
|
|
| 17 |
new_version: meta-llama/Llama-3.1-8B-Instruct
|
| 18 |
pipeline_tag: question-answering
|
| 19 |
library_name: adapter-transformers
|
| 20 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
new_version: meta-llama/Llama-3.1-8B-Instruct
|
| 18 |
pipeline_tag: question-answering
|
| 19 |
library_name: adapter-transformers
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
from transformers import pipeline
|
| 23 |
+
|
| 24 |
+
# Load your model using the Hugging Face pipeline
|
| 25 |
+
qa_pipeline = pipeline('question-answering', model="your-huggingface-username/QuantumEdgeAI")
|
| 26 |
+
|
| 27 |
+
# Test it with a question and context
|
| 28 |
+
result = qa_pipeline(question="What is Quantum Computing?", context="Quantum computing is a type of computation that harnesses the collective properties of quantum states.")
|
| 29 |
+
print(result)
|