Spaces:
Sleeping
Sleeping
Update run_model.py
Browse files- run_model.py +1 -0
run_model.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
import os
|
|
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
SYSTEM_PROMPT = """You are helpful AI assistant. You answer questions truthfully.
|
|
|
|
| 1 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
import os
|
| 4 |
+
from transformers import pipeline
|
| 5 |
import torch
|
| 6 |
|
| 7 |
SYSTEM_PROMPT = """You are helpful AI assistant. You answer questions truthfully.
|