Sakeeb commited on
Commit
c53597d
·
verified ·
1 Parent(s): 1476f7d

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +22 -5
app.py CHANGED
@@ -81,27 +81,44 @@ def chat_with_agent(message, history):
81
  return f"❌ Error: {str(e)}"
82
 
83
 
84
- # Custom CSS for a beautiful interface
85
  custom_css = """
86
  .gradio-container {
87
  max-width: 900px !important;
88
  }
89
 
90
  #component-0 {
91
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
92
  color: white;
93
  padding: 20px;
94
  border-radius: 10px;
95
  text-align: center;
96
  margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  }
98
  """
99
 
100
- # Create Gradio interface
101
  with gr.Blocks(
102
  theme=gr.themes.Soft(
103
- primary_hue="purple",
104
- secondary_hue="violet",
105
  ),
106
  css=custom_css,
107
  title="AI Agent Chat",
 
81
  return f"❌ Error: {str(e)}"
82
 
83
 
84
+ # Custom CSS for a beautiful interface with orange-mauve gradient
85
  custom_css = """
86
  .gradio-container {
87
  max-width: 900px !important;
88
  }
89
 
90
  #component-0 {
91
+ background: linear-gradient(135deg, #ff6b35 0%, #c44569 50%, #8b5a9e 100%);
92
  color: white;
93
  padding: 20px;
94
  border-radius: 10px;
95
  text-align: center;
96
  margin-bottom: 20px;
97
+ box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
98
+ }
99
+
100
+ /* Orange-mauve gradient for buttons */
101
+ .primary-button {
102
+ background: linear-gradient(135deg, #ff6b35 0%, #c44569 100%) !important;
103
+ }
104
+
105
+ /* Accent colors */
106
+ button.primary {
107
+ background: linear-gradient(135deg, #ff6b35 0%, #c44569 100%) !important;
108
+ border: none !important;
109
+ }
110
+
111
+ .chatbot .message.bot {
112
+ background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(196, 69, 105, 0.1) 100%) !important;
113
+ border-left: 3px solid #ff6b35 !important;
114
  }
115
  """
116
 
117
+ # Create Gradio interface with orange-mauve theme
118
  with gr.Blocks(
119
  theme=gr.themes.Soft(
120
+ primary_hue="orange",
121
+ secondary_hue="pink",
122
  ),
123
  css=custom_css,
124
  title="AI Agent Chat",