rish13 commited on
Commit
bbfcb0d
·
verified ·
1 Parent(s): 44d8941

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
  import torch
4
 
5
- # Check if a GPU is available
6
  device = 0 if torch.cuda.is_available() else -1
7
 
8
  # Load the text-generation pipeline with the appropriate device
 
2
  from transformers import pipeline
3
  import torch
4
 
5
+ # Check if a GPU is available
6
  device = 0 if torch.cuda.is_available() else -1
7
 
8
  # Load the text-generation pipeline with the appropriate device