Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
|
|
3 |
subprocess.check_call(["pip", "install", "transformers"])
|
4 |
subprocess.check_call(["pip", "install", "torch"])
|
|
|
5 |
|
6 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
7 |
|
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
3 |
+
subprocess.check_call(["pip", "install", "--upgrade", "huggingface-hub"])
|
4 |
subprocess.check_call(["pip", "install", "transformers"])
|
5 |
subprocess.check_call(["pip", "install", "torch"])
|
6 |
+
|
7 |
|
8 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
9 |
|