Spaces:
Paused
Paused
Commit
·
cb7d61c
1
Parent(s):
c19635c
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import streamlit as st
|
|
2 |
from transformers import pipeline, BitsAndBytesConfig, AutoModelForCausalLM, AutoTokenizer
|
3 |
import torch
|
4 |
|
|
|
|
|
|
|
5 |
# Load the Hugging Face model for chatbot
|
6 |
bnb_config = BitsAndBytesConfig(
|
7 |
load_in_4bit=True,
|
|
|
2 |
from transformers import pipeline, BitsAndBytesConfig, AutoModelForCausalLM, AutoTokenizer
|
3 |
import torch
|
4 |
|
5 |
+
|
6 |
+
print(torch.cuda.is_available())
|
7 |
+
|
8 |
# Load the Hugging Face model for chatbot
|
9 |
bnb_config = BitsAndBytesConfig(
|
10 |
load_in_4bit=True,
|