saima730 commited on
Commit
3d81f92
·
verified ·
1 Parent(s): 6e9d2ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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