Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
# Load the GPT-2 model and tokenizer
|
|
|
|
|
2 |
import streamlit as st
|
3 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
4 |
import torch
|
|
|
1 |
# Load the GPT-2 model and tokenizer
|
2 |
+
import os
|
3 |
+
os.system('pip install streamlit transformers torch')
|
4 |
import streamlit as st
|
5 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
6 |
import torch
|