InfiniteValueMe commited on
Commit
4f8216f
·
verified ·
1 Parent(s): 7ff7037

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -71
app.py CHANGED
@@ -77,77 +77,7 @@ def chat_with_infinite_agent(message, lang, history):
77
 
78
  return history, history
79
 
80
-
81
- #GRADIO UI WITH DARK MODE
82
- dark_css = """
83
- /* BODY AND BACKGROUND */
84
- body {
85
- background-color: #1E1E1E;
86
- color: #FFFFFF;
87
- font-family: 'Inter', sans-serif;
88
- }
89
-
90
- /* CHATBOT */
91
- .gr-chatbot {
92
- background-color: #F5F0E1;
93
- border-radius: 16px;
94
- padding: 20px;
95
- font-family: 'Inter', sans-serif;
96
- color: #1E1E1E;
97
- }
98
-
99
- /* CHAT BUBBLES */
100
- .gr-chatbot .message {
101
- background-color: #F5F0E1 !important;
102
- color: #1E1E1E !important;
103
- border-radius: 12px;
104
- padding: 8px 12px;
105
- margin-bottom: 6px;
106
- }
107
-
108
- /* INPUTS AND DROPDOWNS */
109
- .gr-dropdown, .gr-textbox {
110
- border-radius: 12px;
111
- border: 1px solid #A892FF;
112
- background-color: #F5F0E1;
113
- color: #1E1E1E;
114
- padding: 8px;
115
- }
116
-
117
- /* Placeholder text for inputs */
118
- .gr-textbox::placeholder {
119
- color: #B0B0B0;
120
- }
121
-
122
- /* BUTTONS */
123
- .gr-button {
124
- border-radius: 12px;
125
- background-color: #6C63FF;
126
- color: #FFFFFF;
127
- font-weight: 600;
128
- }
129
-
130
- .gr-button:hover {
131
- background-color: #A892FF;
132
- }
133
-
134
- /* HEADER TEXT */
135
- .header-text {
136
- font-family: 'Poppins', sans-serif;
137
- font-weight: 600;
138
- color: #FFFFFF;
139
- }
140
-
141
- #agent-avatar {
142
- width: 64px;
143
- height: 64px;
144
- margin-bottom: 12px;
145
- }
146
-
147
- /* Avatar default styling */
148
- """
149
-
150
- with gr.Blocks(title="Infinite Agent", css=dark_css) as demo:
151
  #Avatar image
152
  gr.Image("avatar.png", elem_id="agent-avatar") # No shape styling, just default
153
 
 
77
 
78
  return history, history
79
 
80
+ with gr.Blocks(title="Infinite Agent", css="style.css") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  #Avatar image
82
  gr.Image("avatar.png", elem_id="agent-avatar") # No shape styling, just default
83