Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer
|
3 |
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
# Run the command to install transformers
|
4 |
+
subprocess.run(["pip", "install", "transformers"])
|
5 |
import gradio as gr
|
6 |
from transformers import AutoTokenizer
|
7 |
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|