Aswini96 commited on
Commit
e3a0999
·
verified ·
1 Parent(s): befb493

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load Llama 3.1 model from Hugging Face
5
- llm_pipeline = pipeline("text-generation", model="meta-llama/Llama-2-7b-chat-hf", device="cuda" if torch.cuda.is_available() else "cpu")
6
 
7
  # Game state
8
  GAME_STATE = {
 
2
  from transformers import pipeline
3
 
4
  # Load Llama 3.1 model from Hugging Face
5
+ llm_pipeline = pipeline("text-generation", model="meta-llama/Llama-2-7b-chat-hf", device="cpu")
6
 
7
  # Game state
8
  GAME_STATE = {