Spaces:
				
			
			
	
			
			
		Paused
		
	
	
	
			
			
	
	
	
	
		
		
		Paused
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -50,146 +50,6 @@ chat_model = AutoModelForSeq2SeqLM.from_pretrained("microsoft/DialoGPT-medium") | |
| 50 | 
             
            # Load tokenizer
         | 
| 51 | 
             
            tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
         | 
| 52 |  | 
| 53 | 
            -
            # Place the CSS here
         | 
| 54 | 
            -
            st.markdown("""
         | 
| 55 | 
            -
            <style>
         | 
| 56 | 
            -
            /* Advanced and Accommodating CSS */
         | 
| 57 | 
            -
            body {
         | 
| 58 | 
            -
                font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
         | 
| 59 | 
            -
                background-color: #f4f4f9;
         | 
| 60 | 
            -
                color: #333;
         | 
| 61 | 
            -
                margin: 0;
         | 
| 62 | 
            -
                padding: 0;
         | 
| 63 | 
            -
            }
         | 
| 64 | 
            -
             | 
| 65 | 
            -
            h1, h2, h3, h4, h5, h6 {
         | 
| 66 | 
            -
                color: #333;
         | 
| 67 | 
            -
            }
         | 
| 68 | 
            -
             | 
| 69 | 
            -
            .container {
         | 
| 70 | 
            -
                width: 90%;
         | 
| 71 | 
            -
                margin: 0 auto;
         | 
| 72 | 
            -
                padding: 20px;
         | 
| 73 | 
            -
            }
         | 
| 74 | 
            -
             | 
| 75 | 
            -
            /* Navigation Sidebar */
         | 
| 76 | 
            -
            .sidebar {
         | 
| 77 | 
            -
                background-color: #2c3e50;
         | 
| 78 | 
            -
                color: #ecf0f1;
         | 
| 79 | 
            -
                padding: 20px;
         | 
| 80 | 
            -
                height: 100vh;
         | 
| 81 | 
            -
                position: fixed;
         | 
| 82 | 
            -
                top: 0;
         | 
| 83 | 
            -
                left: 0;
         | 
| 84 | 
            -
                width: 250px;
         | 
| 85 | 
            -
                overflow-y: auto;
         | 
| 86 | 
            -
            }
         | 
| 87 | 
            -
             | 
| 88 | 
            -
            .sidebar a {
         | 
| 89 | 
            -
                color: #ecf0f1;
         | 
| 90 | 
            -
                text-decoration: none;
         | 
| 91 | 
            -
                display: block;
         | 
| 92 | 
            -
                padding: 10px 0;
         | 
| 93 | 
            -
            }
         | 
| 94 | 
            -
             | 
| 95 | 
            -
            .sidebar a:hover {
         | 
| 96 | 
            -
                background-color: #34495e;
         | 
| 97 | 
            -
                border-radius: 5px;
         | 
| 98 | 
            -
            }
         | 
| 99 | 
            -
             | 
| 100 | 
            -
            /* Main Content */
         | 
| 101 | 
            -
            .main-content {
         | 
| 102 | 
            -
                margin-left: 270px;
         | 
| 103 | 
            -
                padding: 20px;
         | 
| 104 | 
            -
            }
         | 
| 105 | 
            -
             | 
| 106 | 
            -
            /* Buttons */
         | 
| 107 | 
            -
            button {
         | 
| 108 | 
            -
                background-color: #3498db;
         | 
| 109 | 
            -
                color: #fff;
         | 
| 110 | 
            -
                border: none;
         | 
| 111 | 
            -
                padding: 10px 20px;
         | 
| 112 | 
            -
                border-radius: 5px;
         | 
| 113 | 
            -
                cursor: pointer;
         | 
| 114 | 
            -
                font-size: 16px;
         | 
| 115 | 
            -
            }
         | 
| 116 | 
            -
             | 
| 117 | 
            -
            button:hover {
         | 
| 118 | 
            -
                background-color: #2980b9;
         | 
| 119 | 
            -
            }
         | 
| 120 | 
            -
             | 
| 121 | 
            -
            /* Text Areas and Inputs */
         | 
| 122 | 
            -
            textarea, input[type="text"] {
         | 
| 123 | 
            -
                width: 100%;
         | 
| 124 | 
            -
                padding: 10px;
         | 
| 125 | 
            -
                margin: 10px 0;
         | 
| 126 | 
            -
                border: 1px solid #ddd;
         | 
| 127 | 
            -
                border-radius: 5px;
         | 
| 128 | 
            -
                box-sizing: border-box;
         | 
| 129 | 
            -
            }
         | 
| 130 | 
            -
             | 
| 131 | 
            -
            textarea:focus, input[type="text"]:focus {
         | 
| 132 | 
            -
                border-color: #3498db;
         | 
| 133 | 
            -
                outline: none;
         | 
| 134 | 
            -
            }
         | 
| 135 | 
            -
             | 
| 136 | 
            -
            /* Terminal Output */
         | 
| 137 | 
            -
            .code-output {
         | 
| 138 | 
            -
                background-color: #1e1e1e;
         | 
| 139 | 
            -
                color: #dcdcdc;
         | 
| 140 | 
            -
                padding: 20px;
         | 
| 141 | 
            -
                border-radius: 5px;
         | 
| 142 | 
            -
                font-family: 'Courier New', Courier, monospace;
         | 
| 143 | 
            -
            }
         | 
| 144 | 
            -
             | 
| 145 | 
            -
            /* Chat History */
         | 
| 146 | 
            -
            .chat-history {
         | 
| 147 | 
            -
                background-color: #ecf0f1;
         | 
| 148 | 
            -
                padding: 20px;
         | 
| 149 | 
            -
                border-radius: 5px;
         | 
| 150 | 
            -
                max-height: 300px;
         | 
| 151 | 
            -
                overflow-y: auto;
         | 
| 152 | 
            -
            }
         | 
| 153 | 
            -
             | 
| 154 | 
            -
            .chat-message {
         | 
| 155 | 
            -
                margin-bottom: 10px;
         | 
| 156 | 
            -
            }
         | 
| 157 | 
            -
             | 
| 158 | 
            -
            .chat-message.user {
         | 
| 159 | 
            -
                text-align: right;
         | 
| 160 | 
            -
                color: #3498db;
         | 
| 161 | 
            -
            }
         | 
| 162 | 
            -
             | 
| 163 | 
            -
            .chat-message.agent {
         | 
| 164 | 
            -
                text-align: left;
         | 
| 165 | 
            -
                color: #e74c3c;
         | 
| 166 | 
            -
            }
         | 
| 167 | 
            -
             | 
| 168 | 
            -
            /* Project Management */
         | 
| 169 | 
            -
            .project-list {
         | 
| 170 | 
            -
                background-color: #ecf0f1;
         | 
| 171 | 
            -
                padding: 20px;
         | 
| 172 | 
            -
                border-radius: 5px;
         | 
| 173 | 
            -
                max-height: 300px;
         | 
| 174 | 
            -
                overflow-y: auto;
         | 
| 175 | 
            -
            }
         | 
| 176 | 
            -
             | 
| 177 | 
            -
            .project-item {
         | 
| 178 | 
            -
                margin-bottom: 10px;
         | 
| 179 | 
            -
            }
         | 
| 180 | 
            -
             | 
| 181 | 
            -
            .project-item a {
         | 
| 182 | 
            -
                color: #3498db;
         | 
| 183 | 
            -
                text-decoration: none;
         | 
| 184 | 
            -
            }
         | 
| 185 | 
            -
             | 
| 186 | 
            -
            .project-item a:hover {
         | 
| 187 | 
            -
                text-decoration: underline;
         | 
| 188 | 
            -
            }
         | 
| 189 | 
            -
            </style>
         | 
| 190 | 
            -
            """, unsafe_allow_html=True)
         | 
| 191 | 
            -
             | 
| 192 | 
            -
             | 
| 193 | 
             
            class AIAgent:
         | 
| 194 | 
             
                def __init__(self, name, description, skills, hf_api=None):
         | 
| 195 | 
             
                    self.name = name
         | 
|  | |
| 50 | 
             
            # Load tokenizer
         | 
| 51 | 
             
            tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
         | 
| 52 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 53 | 
             
            class AIAgent:
         | 
| 54 | 
             
                def __init__(self, name, description, skills, hf_api=None):
         | 
| 55 | 
             
                    self.name = name
         | 
 
			
