Spaces:
Running
Running
app.py
Browse files
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"
|
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")
|