M17idd commited on
Commit
1e84118
·
verified ·
1 Parent(s): da6eb68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -12
app.py CHANGED
@@ -71,43 +71,72 @@ demo = gr.Interface(
71
  theme="default",
72
  css="""
73
  body {
74
- background-color: #3e442c !important; /* سبز زیتونی */
75
- color: #f0f0f0 !important;
76
  font-family: 'Vazir', sans-serif;
77
  direction: rtl;
78
  }
79
 
80
  .gradio-container {
81
- background-color: #3e442c !important;
82
  }
83
 
84
  label {
85
- font-size: 18px !important;
86
- color: #d4ffcc !important; /* روشن‌تر برای سبز زیتونی */
87
  font-weight: bold;
88
  }
89
 
90
  #military-input textarea, #military-output textarea {
91
- background-color: #4a5033 !important;
92
- color: #ffffff !important;
93
- border: 1px solid #6e7a4e !important;
94
  }
95
 
96
  .gr-button {
97
- background-color: #5e6d3b !important;
98
- color: white !important;
99
  border-radius: 8px;
 
 
100
  }
101
 
102
  .gr-button:hover {
103
- background-color: #768c47 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  }
105
  """,
106
  submit_btn="🎯 تولید گزارش",
107
  clear_btn="🗑️ پاک کردن"
108
  )
109
 
110
-
111
  demo.launch()
112
 
113
  if __name__ == "__main__":
 
71
  theme="default",
72
  css="""
73
  body {
74
+ background-color: #2E3B2B !important; /* سبز ارتشی تیره */
75
+ color: #FFFFFF !important;
76
  font-family: 'Vazir', sans-serif;
77
  direction: rtl;
78
  }
79
 
80
  .gradio-container {
81
+ background-color: #2E3B2B !important;
82
  }
83
 
84
  label {
85
+ font-size: 20px !important;
86
+ color: #FFD700 !important; /* رنگ طلایی برای دکمه‌ها و متون */
87
  font-weight: bold;
88
  }
89
 
90
  #military-input textarea, #military-output textarea {
91
+ background-color: #3E4B39 !important; /* رنگ سبز تیره برای ورودی‌ها */
92
+ color: #FFFFFF !important;
93
+ border: 1px solid #A5AC57 !important; /* رنگ مرز دکمه‌ها */
94
  }
95
 
96
  .gr-button {
97
+ background-color: #4D7A2B !important; /* سبز ارتشی */
98
+ color: #FFFFFF !important;
99
  border-radius: 8px;
100
+ font-size: 16px;
101
+ padding: 12px;
102
  }
103
 
104
  .gr-button:hover {
105
+ background-color: #6A9F3D !important; /* سبز روشن‌تر برای Hover */
106
+ }
107
+
108
+ .gradio-footer {
109
+ background-color: #3A513B !important;
110
+ color: #FFFFFF !important;
111
+ }
112
+
113
+ .gradio-title {
114
+ color: #FFD700 !important; /* رنگ طلایی برای عنوان */
115
+ font-size: 24px;
116
+ font-weight: bold;
117
+ text-align: center;
118
+ }
119
+
120
+ .gradio-description {
121
+ color: #B0B0B0 !important;
122
+ font-size: 18px;
123
+ text-align: center;
124
+ }
125
+
126
+ .gr-textbox input[type="text"], .gr-textbox textarea {
127
+ background-color: #2F3B2A !important;
128
+ color: #FFFFFF !important;
129
+ border: 1px solid #A5AC57 !important;
130
+ }
131
+
132
+ .gr-textbox input[type="text"]:focus, .gr-textbox textarea:focus {
133
+ border-color: #FFD700 !important;
134
  }
135
  """,
136
  submit_btn="🎯 تولید گزارش",
137
  clear_btn="🗑️ پاک کردن"
138
  )
139
 
 
140
  demo.launch()
141
 
142
  if __name__ == "__main__":