M17idd commited on
Commit
cab8d91
·
verified ·
1 Parent(s): 87fefbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +81 -63
app.py CHANGED
@@ -63,69 +63,87 @@ demo = gr.Interface(
63
  title="🛰️ سامانه گزارش‌ساز رزم یار",
64
  description="🔰 اطلاعات عملیات را وارد کنید تا سامانه یک گزارش رسمی تولید کند.",
65
  css="""
66
- body {
67
- background-color: #d9dec5 !important;
68
- color: #1e293b !important;
69
- font-family: 'Vazir', sans-serif;
70
- direction: rtl;
71
- }
72
-
73
- .gradio-container {
74
- background-color: #d9dec5 !important;
75
- direction: rtl;
76
- }
77
-
78
- label {
79
- font-size: 22px !important;
80
- color: #1e293b !important;
81
- font-weight: bold;
82
- text-align: right;
83
- }
84
-
85
- #military-input textarea, #military-output textarea {
86
- background-color: #f0f4e5 !important;
87
- color: #1e293b !important;
88
- border: 2px solid #529b39 !important;
89
- direction: rtl !important;
90
- text-align: right !important;
91
- font-size: 16px;
92
- line-height: 1.8;
93
- }
94
-
95
- .gr-button {
96
- background-color: #529b39 !important;
97
- color: #eeeeee !important;
98
- border-radius: 12px;
99
- font-size: 18px;
100
- padding: 14px;
101
- transition: all 0.3s ease;
102
- }
103
-
104
- .gr-button:hover {
105
- background-color: #45a12d !important;
106
- transform: scale(1.05);
107
- }
108
-
109
- .gr-button:active {
110
- background-color: #3b8e27 !important;
111
- }
112
-
113
- .gr-button[type="submit"] {
114
- background-color: #529b39 !important;
115
- }
116
-
117
- .gr-button[type="reset"] {
118
- background-color: #ff7043 !important;
119
- }
120
-
121
- .gradio-footer {
122
- display: none !important;
123
- }
124
-
125
- .gr-textbox input[type="text"], .gr-textbox textarea {
126
- font-family: 'Vazir', sans-serif;
127
- }
128
- """,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  submit_btn="🎯 تولید گزارش",
130
  clear_btn="🗑️ پاک کردن"
131
  )
 
63
  title="🛰️ سامانه گزارش‌ساز رزم یار",
64
  description="🔰 اطلاعات عملیات را وارد کنید تا سامانه یک گزارش رسمی تولید کند.",
65
  css="""
66
+ body {
67
+ background-color: #d9dec5 !important;
68
+ color: #1e293b !important;
69
+ font-family: 'Vazir', sans-serif;
70
+ direction: rtl;
71
+ }
72
+
73
+ .gradio-container {
74
+ background-color: #d9dec5 !important;
75
+ direction: rtl;
76
+ }
77
+
78
+ .gradio-container h1, .gradio-container p {
79
+ text-align: center !important;
80
+ direction: rtl !important;
81
+ }
82
+
83
+ .gradio-container h1 {
84
+ font-size: 32px !important;
85
+ margin-top: 20px !important;
86
+ font-weight: bold;
87
+ color: #1e293b !important;
88
+ }
89
+
90
+ .gradio-container p {
91
+ font-size: 20px !important;
92
+ color: #374151 !important;
93
+ margin-bottom: 30px !important;
94
+ }
95
+
96
+ label {
97
+ font-size: 22px !important;
98
+ color: #1e293b !important;
99
+ font-weight: bold;
100
+ text-align: right;
101
+ }
102
+
103
+ #military-input textarea, #military-output textarea {
104
+ background-color: #f0f4e5 !important;
105
+ color: #1e293b !important;
106
+ border: 2px solid #529b39 !important;
107
+ direction: rtl !important;
108
+ text-align: right !important;
109
+ font-size: 16px;
110
+ line-height: 1.8;
111
+ }
112
+
113
+ .gr-button {
114
+ background-color: #529b39 !important;
115
+ color: #eeeeee !important;
116
+ border-radius: 12px;
117
+ font-size: 18px;
118
+ padding: 14px;
119
+ transition: all 0.3s ease;
120
+ }
121
+
122
+ .gr-button:hover {
123
+ background-color: #45a12d !important;
124
+ transform: scale(1.05);
125
+ }
126
+
127
+ .gr-button:active {
128
+ background-color: #3b8e27 !important;
129
+ }
130
+
131
+ .gr-button[type="submit"] {
132
+ background-color: #529b39 !important;
133
+ }
134
+
135
+ .gr-button[type="reset"] {
136
+ background-color: #ff7043 !important;
137
+ }
138
+
139
+ .gradio-footer {
140
+ display: none !important;
141
+ }
142
+
143
+ .gr-textbox input[type="text"], .gr-textbox textarea {
144
+ font-family: 'Vazir', sans-serif;
145
+ }
146
+ """,
147
  submit_btn="🎯 تولید گزارش",
148
  clear_btn="🗑️ پاک کردن"
149
  )