Moezulhaq24 commited on
Commit
cafeb76
·
verified ·
1 Parent(s): a4a9246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -3
app.py CHANGED
@@ -11,10 +11,35 @@ model_mapping = {
11
  }
12
 
13
  # Streamlit app
14
- st.title("Language Translator")
15
 
16
- # Sidebar for language selection and translation output
17
- with st.sidebar:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  st.header("Translate Text")
19
 
20
  # Input text
 
11
  }
12
 
13
  # Streamlit app
14
+ st.title("🌎 TRANSLINGO 🔡")
15
 
16
+ st.markdown(
17
+ """
18
+ <style>
19
+ .main {
20
+ background: linear-gradient(to right, #ff7e5f, #feb47b);
21
+ height: 100vh;
22
+ padding: 2rem;
23
+ }
24
+ .block-container {
25
+ padding: 2rem;
26
+ }
27
+ .title {
28
+ background-color: #d4edda; /* Light green color */
29
+ padding: 1rem;
30
+ border-radius: 8px;
31
+ text-align: center;
32
+ }
33
+ </style>
34
+ """,
35
+ unsafe_allow_html=True
36
+ )
37
+
38
+
39
+ col1, col2, col3 = st.columns([1, 3, 1])
40
+
41
+ # Center the content in the middle column
42
+ with col2:
43
  st.header("Translate Text")
44
 
45
  # Input text