Spaces:
Runtime error
Runtime error
gokilashree
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
2 |
from transformers import MBartForConditionalGeneration, MBart50Tokenizer
|
3 |
import gradio as gr
|
4 |
|
|
|
1 |
+
import subprocess
|
2 |
+
import sys
|
3 |
+
|
4 |
+
# Install the necessary packages if not already installed
|
5 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "transformers", "gradio"])
|
6 |
+
|
7 |
from transformers import MBartForConditionalGeneration, MBart50Tokenizer
|
8 |
import gradio as gr
|
9 |
|