rezaenayati commited on
Commit
5d4ba4b
·
verified ·
1 Parent(s): c21439b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +49 -0
app.py CHANGED
@@ -97,9 +97,58 @@ def chat_with_rezAi(message, history):
97
 
98
  return assistant_response
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  # Simple Gradio interface
101
  demo = gr.ChatInterface(
102
  fn=chat_with_rezAi,
 
103
  title="RezAI",
104
  description="RezAI: Trained on Reza's resume.",
105
  theme = "monochrome"
 
97
 
98
  return assistant_response
99
 
100
+ custom_css = """
101
+ body {
102
+ background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
103
+ color: var(--text-primary, #ffffff);
104
+ font-family: 'Inter', sans-serif;
105
+ }
106
+
107
+ .gradio-container {
108
+ background: rgba(15, 15, 15, 0.8);
109
+ border: 1px solid #1f1f1f;
110
+ border-radius: 1.25rem;
111
+ backdrop-filter: blur(12px);
112
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
113
+ padding: 2rem;
114
+ }
115
+
116
+ .message.user {
117
+ background-color: #374151 !important;
118
+ color: #ffffff !important;
119
+ border-radius: 1rem !important;
120
+ }
121
+
122
+ .message.bot {
123
+ background-color: #1f1f1f !important;
124
+ color: #d1d5db !important;
125
+ border-radius: 1rem !important;
126
+ }
127
+
128
+ textarea, input[type="text"] {
129
+ background: #1f1f1f;
130
+ color: #ffffff;
131
+ border: 1px solid #333;
132
+ border-radius: 0.75rem;
133
+ }
134
+
135
+ button {
136
+ background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
137
+ color: white;
138
+ border-radius: 0.75rem;
139
+ font-weight: 500;
140
+ transition: background 0.3s;
141
+ }
142
+
143
+ button:hover {
144
+ background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
145
+ }
146
+ """
147
+
148
  # Simple Gradio interface
149
  demo = gr.ChatInterface(
150
  fn=chat_with_rezAi,
151
+ css = custom_css,
152
  title="RezAI",
153
  description="RezAI: Trained on Reza's resume.",
154
  theme = "monochrome"