mmshaban commited on
Commit
9cefb1b
·
verified ·
1 Parent(s): efdc3d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -67,14 +67,23 @@ view = gr.Interface(
67
  flagging_mode="never" # This should be part of the same function call
68
  )
69
  view.css = """
 
 
 
 
 
70
  #output-box {
71
- font-size: 20px; /* Adjust font size as needed */
72
- line-height: 1.6; /* Optional: Adjust line height for readability */
73
  border: 2px solid #ccc; /* Add a border around the box */
74
  border-radius: 8px; /* Optional: Round the corners */
75
  padding: 15px; /* Add some padding inside the box */
76
  background-color: #f9f9f9; /* Light background for the box */
77
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
 
 
 
78
  }
79
  """
 
80
  view.launch()
 
67
  flagging_mode="never" # This should be part of the same function call
68
  )
69
  view.css = """
70
+ body {
71
+ margin: 0; /* Remove default body margins */
72
+ padding: 0; /* Remove default body padding */
73
+ }
74
+
75
  #output-box {
76
+ font-size: 40px; /* Adjust font size as needed */
77
+ line-height: 2; /* Optional: Adjust line height for readability */
78
  border: 2px solid #ccc; /* Add a border around the box */
79
  border-radius: 8px; /* Optional: Round the corners */
80
  padding: 15px; /* Add some padding inside the box */
81
  background-color: #f9f9f9; /* Light background for the box */
82
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
83
+ width: calc(100% - 30px); /* Ensure it spans full width with slight padding */
84
+ max-width: 600px; /* Limit the max width for readability */
85
+ margin: auto; /* Center align the box */
86
  }
87
  """
88
+
89
  view.launch()