Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from huggingface_hub import InferenceClient
|
|
| 5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 6 |
"""
|
| 7 |
from optimum.intel import OVModelForCausalLM
|
|
|
|
| 8 |
|
| 9 |
model_id = "HelloSun/Qwen2.5-0.5B-Instruct-openvino"
|
| 10 |
model = OVModelForCausalLM.from_pretrained(model_id)
|
|
|
|
| 5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 6 |
"""
|
| 7 |
from optimum.intel import OVModelForCausalLM
|
| 8 |
+
from transformers import AutoTokenizer, pipeline
|
| 9 |
|
| 10 |
model_id = "HelloSun/Qwen2.5-0.5B-Instruct-openvino"
|
| 11 |
model = OVModelForCausalLM.from_pretrained(model_id)
|