Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
pip install transformers
|
2 |
-
|
3 |
import streamlit as st
|
4 |
-
pip install transformers && streamlit run app.py
|
5 |
-
|
6 |
from transformers import pipeline
|
7 |
|
8 |
# Function to load the translation pipeline based on the target language
|
@@ -44,3 +41,4 @@ if st.button("Translate"):
|
|
44 |
st.write(translated_text)
|
45 |
else:
|
46 |
st.error("Please enter text to translate.")
|
|
|
|
1 |
pip install transformers
|
|
|
2 |
import streamlit as st
|
|
|
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
# Function to load the translation pipeline based on the target language
|
|
|
41 |
st.write(translated_text)
|
42 |
else:
|
43 |
st.error("Please enter text to translate.")
|
44 |
+
streamlit run app.py
|