innoai commited on
Commit
d055e18
·
verified ·
1 Parent(s): d1982a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -68,11 +68,11 @@ def convert_subtitles(uploaded_file_path, dest_format):
68
  return "", "No file uploaded."
69
 
70
  def main():
71
- # Create the Gradio Blocks interface with a page title for SEO
72
- with gr.Blocks(analytics_enabled=False, title="Free Online Subtitle Converter - Convert SRT, VTT, ASS, SSA Subtitles Easily") as demo:
73
-
74
- # Load custom CSS to improve the UI appearance
75
- demo.load_css("""
76
  /* Global background and font settings */
77
  body {
78
  background-color: #f7f7f7;
@@ -96,8 +96,9 @@ def main():
96
  #convert-btn:hover {
97
  background-color: #0056b3;
98
  }
99
- """)
100
-
 
101
  # Add SEO information, application description, and usage instructions
102
  with gr.Row():
103
  with gr.Column():
 
68
  return "", "No file uploaded."
69
 
70
  def main():
71
+ # Create the Gradio Blocks interface with a page title and custom CSS for better UI appearance.
72
+ with gr.Blocks(
73
+ analytics_enabled=False,
74
+ title="Free Online Subtitle Converter - Convert SRT, VTT, ASS, SSA Subtitles Easily",
75
+ css="""
76
  /* Global background and font settings */
77
  body {
78
  background-color: #f7f7f7;
 
96
  #convert-btn:hover {
97
  background-color: #0056b3;
98
  }
99
+ """
100
+ ) as demo:
101
+
102
  # Add SEO information, application description, and usage instructions
103
  with gr.Row():
104
  with gr.Column():