Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextGenerationPipeline
|
3 |
|
4 |
# Load the model and tokenizer in full precision and ensure it's on CPU
|
|
|
1 |
import streamlit as st
|
2 |
+
import torch # <-- Add this import
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextGenerationPipeline
|
4 |
|
5 |
# Load the model and tokenizer in full precision and ensure it's on CPU
|