Akseltinfat commited on
Commit
1f5c327
1 Parent(s): 7bc28ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -29,7 +29,7 @@ def convert_text(input_text, conversion_type):
29
  return ''.join(latin_to_tifinagh_map.get(char, char) for char in input_text)
30
  return input_text
31
 
32
- # Gradio Interface with updated theme and centered description
33
  iface = gr.Interface(
34
  fn=convert_text,
35
  inputs=[
@@ -40,7 +40,10 @@ iface = gr.Interface(
40
  live=True,
41
  title="Tifinagh Converter",
42
  description="<center>Convert text between Tifinagh and Latin scripts.</center>", # Centering the description
43
- theme=gr.themes.Glass() # Updated theme
 
 
 
44
  )
45
 
46
  iface.launch()
 
29
  return ''.join(latin_to_tifinagh_map.get(char, char) for char in input_text)
30
  return input_text
31
 
32
+ # Gradio Interface with updated theme, centered description, and frame
33
  iface = gr.Interface(
34
  fn=convert_text,
35
  inputs=[
 
40
  live=True,
41
  title="Tifinagh Converter",
42
  description="<center>Convert text between Tifinagh and Latin scripts.</center>", # Centering the description
43
+ theme=gr.themes.Glass(), # Updated theme
44
+ layout="vertical", # Ensures a clean, vertically stacked layout
45
+ elem_id="main-frame", # Optional, allows targeting with custom CSS if needed
46
+ css=".gradio-container { border: 2px solid #000; padding: 20px; border-radius: 10px; }" # Adding a border around the interface
47
  )
48
 
49
  iface.launch()