Update app.py
Browse files
app.py
CHANGED
|
@@ -63,69 +63,87 @@ demo = gr.Interface(
|
|
| 63 |
title="🛰️ سامانه گزارشساز رزم یار",
|
| 64 |
description="🔰 اطلاعات عملیات را وارد کنید تا سامانه یک گزارش رسمی تولید کند.",
|
| 65 |
css="""
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 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 |
)
|