Joekd608 commited on
Commit
cf28fb5
1 Parent(s): 2e34e1d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
22
  login(token=access_token_read)
23
 
24
  # Initialize the text generation pipeline with GPT-2 model
25
- pipe = pipeline("text-generation", model="distilbert/distilgpt2", device=-1) # Using CPU
26
 
27
  # Input from the user
28
  text = st.text_input("Ask a Random Question")
 
22
  login(token=access_token_read)
23
 
24
  # Initialize the text generation pipeline with GPT-2 model
25
+ pipe = pipeline("text-generation", model="distilbert/distilgpt2") # Using CPU
26
 
27
  # Input from the user
28
  text = st.text_input("Ask a Random Question")