File size: 1,198 Bytes
136b0a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import streamlit as st
import requests
import json
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
from io import BytesIO

# Styles
st.markdown(
    """
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
    <style>
    body {
        font-family: 'Roboto', sans-serif;
    }
    .sidebar .sidebar-content {
        background-color: #f0f0f5; /* Light gray */
    }
    .stButton > button {
        background-color: #4CAF50; /* Green */
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        margin: 4px 2px;
        cursor: pointer;
    }
    .stTextArea > textarea {
        border-radius: 10px;
        border: 2px solid #4CAF50; /* Green */
        padding: 10px;
        font-size: 16px;
    }
    .stImage {
        border: 2px solid #4CAF50; /* Green */
        border-radius: 10px;
    }
    </style>
    """,
    unsafe_allow_html=True,
)

# Rest of your app code
st.markdown("<h1 style='text-align: center;'>Tamil to English Translation and Story Generation App</h1>", unsafe_allow_html=True)
# Sidebar, input fields, and functionality continue as before...