Promotingai commited on
Commit
634b556
·
verified ·
1 Parent(s): c7903f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -1221
app.py CHANGED
@@ -1,1230 +1,48 @@
 
1
  import streamlit as st
2
- import openai
3
- import json
4
- import os
5
 
 
6
  openai_api_key = os.getenv("OPENAI_API_KEY")
7
 
8
- # Données des appartements
9
- appartements = [
10
- {
11
- "ÉTAGE": "Rez-de-chaussée",
12
- "index": 1,
13
- "url": "https://logis-experts.com/immeuble/4925-promenade-des-soeurs-galileo-2",
14
- "DISPONIBILITÉ": "01 juin 2024",
15
- "timestampString": "Sun, 05 May 2024 20:12:06 GMT",
16
- "url_uid": 21,
17
- "uid": "TCzdaQXvQQbb1ihcNUFD",
18
- "PIED CARRÉ": "475 pi2",
19
- "timestamp": 1714939926783,
20
- "RABAIS": "Rabais de 210$/mois",
21
- "TAILLE": "Loft",
22
- "PRIX": "1195$/mois",
23
- "APP": "Appartement 221"
24
- },
25
- {
26
- "DISPONIBILITÉ": "01 avril 2024",
27
- "TAILLE": "5 ½",
28
- "uid": "M3TGdwswBv8fpSV6okjH",
29
- "PRIX": "2950$/mois",
30
- "timestampString": "Sun, 05 May 2024 20:12:06 GMT",
31
- "timestamp": 1714939926783,
32
- "url": "https://logis-experts.com/immeuble/4925-promenade-des-soeurs-galileo-2",
33
- "url_uid": 21,
34
- "index": 2,
35
- "RABAIS": None,
36
- "APP": "Appartement 602",
37
- "PIED CARRÉ": "1497 pi2",
38
- "ÉTAGE": "Étage 5"
39
- },
40
- {
41
- "url": "https://logis-experts.com/immeuble/508-st-vallier-o-le-saint-so",
42
- "index": 3,
43
- "ÉTAGE": "Étage 4",
44
- "timestampString": "Sun, 05 May 2024 20:12:08 GMT",
45
- "url_uid": 6,
46
- "PIED CARRÉ": "484 pi2",
47
- "timestamp": 1714939928026,
48
- "DISPONIBILITÉ": "01 juillet 2024",
49
- "TAILLE": "3 ½",
50
- "uid": "YQT7oHyLyEShDJqPMSWF",
51
- "RABAIS": None,
52
- "PRIX": "1295$/mois",
53
- "APP": "Appartement 420"
54
- },
55
- {
56
- "timestamp": 1714939928356,
57
- "PRIX": "1475$/mois",
58
- "ÉTAGE": "Étage 2",
59
- "url": "https://logis-experts.com/immeuble/590-st-joseph",
60
- "APP": "Appartement 205",
61
- "url_uid": 12,
62
- "TAILLE": "3 ½",
63
- "PIED CARRÉ": "667 pi2",
64
- "DISPONIBILITÉ": "01 juillet 2024",
65
- "RABAIS": "Rabais de 125$/mois",
66
- "timestampString": "Sun, 05 May 2024 20:12:08 GMT",
67
- "uid": "k7bo4FQ9FUCjqRkw6mdq",
68
- "index": 4
69
- },
70
- {
71
- "ÉTAGE": "Étage 3",
72
- "TAILLE": "3 ½",
73
- "APP": "Appartement 305",
74
- "index": 5,
75
- "PIED CARRÉ": "668 pi2",
76
- "RABAIS": "Rabais de 125$/mois",
77
- "PRIX": "1495$/mois",
78
- "timestampString": "Sun, 05 May 2024 20:12:08 GMT",
79
- "DISPONIBILITÉ": "01 juillet 2024",
80
- "url_uid": 12,
81
- "url": "https://logis-experts.com/immeuble/590-st-joseph",
82
- "timestamp": 1714939928356,
83
- "uid": "0B7MImXHYxMDANLwNujP"
84
- },
85
- {
86
- "url": "https://logis-experts.com/immeuble/590-st-joseph",
87
- "url_uid": 12,
88
- "PRIX": "1495$/mois",
89
- "PIED CARRÉ": "668 pi2",
90
- "timestamp": 1714939928356,
91
- "APP": "Appartement 405",
92
- "index": 6,
93
- "TAILLE": "3 ½",
94
- "uid": "KRbaTF4w3sj36ASi5juY",
95
- "RABAIS": "Rabais de 125$/mois",
96
- "DISPONIBILITÉ": "01 juillet 2024",
97
- "timestampString": "Sun, 05 May 2024 20:12:08 GMT",
98
- "ÉTAGE": "Étage 4"
99
- },
100
- {
101
- "PRIX": "925$/mois",
102
- "PIED CARRÉ": "360 pi2",
103
- "DISPONIBILITÉ": "01 juillet 2024",
104
- "timestamp": 1714939928679,
105
- "timestampString": "Sun, 05 May 2024 20:12:08 GMT",
106
- "uid": "LSMOHuUINpoQ9Fgefcl1",
107
- "url_uid": 3,
108
- "APP": "Appartement 416",
109
- "index": 7,
110
- "ÉTAGE": "Étage 4",
111
- "TAILLE": "Loft",
112
- "RABAIS": None,
113
- "url": "https://logis-experts.com/immeuble/2455-evangeline"
114
- },
115
- {
116
- "PIED CARRÉ": "959 pi2",
117
- "DISPONIBILITÉ": "01 mai 2024",
118
- "timestamp": 1714939929784,
119
- "uid": "sqwGMkcfyhIr9US08L1Y",
120
- "APP": "Appartement 312",
121
- "url": "https://logis-experts.com/immeuble/2095-dassise-boho-2",
122
- "index": 8,
123
- "RABAIS": None,
124
- "PRIX": "1750$/mois",
125
- "ÉTAGE": "Étage 3",
126
- "url_uid": 8,
127
- "timestampString": "Sun, 05 May 2024 20:12:09 GMT",
128
- "TAILLE": "4 ½"
129
- },
130
- {
131
- "uid": "xjpcw2PzHE03odAVZwQ3",
132
- "PRIX": "1630$/mois",
133
- "url_uid": 9,
134
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
135
- "index": 9,
136
- "DISPONIBILITÉ": "01 juillet 2024",
137
- "APP": "Appartement 233",
138
- "TAILLE": "3 ½",
139
- "ÉTAGE": "Étage 2",
140
- "PIED CARRÉ": "765 pi2",
141
- "RABAIS": "Rabais de 140$/mois",
142
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
143
- "timestamp": 1714939931495
144
- },
145
- {
146
- "timestamp": 1714939931495,
147
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
148
- "ÉTAGE": "Étage 4",
149
- "DISPONIBILITÉ": "01 juillet 2024",
150
- "uid": "BWSCAJtPWQSr4waZZMi1",
151
- "PRIX": "1460$/mois",
152
- "APP": "Appartement 432",
153
- "PIED CARRÉ": "657 pi2",
154
- "RABAIS": "Rabais de 120$/mois",
155
- "index": 10,
156
- "TAILLE": "3 ½",
157
- "url_uid": 9,
158
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo"
159
- },
160
- {
161
- "APP": "Appartement 433",
162
- "TAILLE": "3 ½",
163
- "RABAIS": "Rabais de 140$/mois",
164
- "url_uid": 9,
165
- "DISPONIBILITÉ": "01 juillet 2024",
166
- "uid": "BCx7IKrQOEq9yVa2ZR4D",
167
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
168
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
169
- "timestamp": 1714939931495,
170
- "PIED CARRÉ": "765 pi2",
171
- "ÉTAGE": "Étage 4",
172
- "PRIX": "1690$/mois",
173
- "index": 11
174
- },
175
- {
176
- "TAILLE": "3 ½",
177
- "RABAIS": "Rabais de 120$/mois",
178
- "url_uid": 9,
179
- "ÉTAGE": "Étage 5",
180
- "APP": "Appartement 532",
181
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
182
- "PIED CARRÉ": "657 pi2",
183
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
184
- "PRIX": "1480$/mois",
185
- "index": 12,
186
- "uid": "NjPKK8CauIqBtahnbDxZ",
187
- "timestamp": 1714939931495,
188
- "DISPONIBILITÉ": "01 août 2024"
189
- },
190
- {
191
- "url_uid": 9,
192
- "TAILLE": "3 ½",
193
- "index": 13,
194
- "APP": "Appartement 533",
195
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
196
- "timestamp": 1714939931495,
197
- "RABAIS": "Rabais de 140$/mois",
198
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
199
- "PRIX": "1710$/mois",
200
- "ÉTAGE": "Étage 5",
201
- "DISPONIBILITÉ": "01 août 2024",
202
- "uid": "r3WVtjWdOafKZVGJAxB2",
203
- "PIED CARRÉ": "765 pi2"
204
- },
205
- {
206
- "uid": "1Ec5qLetOKXozEbcb859",
207
- "ÉTAGE": "Étage 5",
208
- "RABAIS": "Rabais de 130$/mois",
209
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
210
- "APP": "Appartement 535",
211
- "index": 14,
212
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
213
- "DISPONIBILITÉ": "01 août 2024",
214
- "PRIX": "1580$/mois",
215
- "TAILLE": "3 ½",
216
- "url_uid": 9,
217
- "timestamp": 1714939931495,
218
- "PIED CARRÉ": "705 pi2"
219
- },
220
- {
221
- "timestamp": 1714939931495,
222
- "ÉTAGE": "Étage 5",
223
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
224
- "url_uid": 9,
225
- "APP": "Appartement 536",
226
- "index": 15,
227
- "PRIX": "1380$/mois",
228
- "DISPONIBILITÉ": "01 août 2024",
229
- "RABAIS": "Rabais de 115$/mois",
230
- "PIED CARRÉ": "610 pi2",
231
- "TAILLE": "3 ½",
232
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
233
- "uid": "yFov37IEcXL74aozofD8"
234
- },
235
- {
236
- "index": 16,
237
- "url_uid": 9,
238
- "timestamp": 1714939931495,
239
- "PIED CARRÉ": "612 pi2",
240
- "uid": "8A4x20D0CQqVhFVMv0Jw",
241
- "APP": "Appartement 538",
242
- "RABAIS": "Rabais de 115$/mois",
243
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
244
- "DISPONIBILITÉ": "01 août 2024",
245
- "ÉTAGE": "Étage 5",
246
- "PRIX": "1390$/mois",
247
- "TAILLE": "3 ½",
248
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo"
249
- },
250
- {
251
- "PIED CARRÉ": "657 pi2",
252
- "url_uid": 9,
253
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
254
- "timestamp": 1714939931495,
255
- "PRIX": "1480$/mois",
256
- "DISPONIBILITÉ": "01 août 2024",
257
- "APP": "Appartement 540",
258
- "uid": "Nsl28I4V6JnKAjhh4siW",
259
- "RABAIS": "Rabais de 120$/mois",
260
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
261
- "index": 17,
262
- "ÉTAGE": "Étage 5",
263
- "TAILLE": "3 ½"
264
- },
265
- {
266
- "DISPONIBILITÉ": "01 août 2024",
267
- "uid": "5ewvedAXq6ft34DS11O4",
268
- "RABAIS": "Rabais de 115$/mois",
269
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
270
- "PRIX": "1380$/mois",
271
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
272
- "ÉTAGE": "Étage 5",
273
- "index": 18,
274
- "TAILLE": "3 ½",
275
- "url_uid": 9,
276
- "PIED CARRÉ": "595 pi2",
277
- "APP": "Appartement 541",
278
- "timestamp": 1714939931495
279
- },
280
- {
281
- "RABAIS": "Rabais de 120$/mois",
282
- "ÉTAGE": "Étage 5",
283
- "timestamp": 1714939931495,
284
- "DISPONIBILITÉ": "01 août 2024",
285
- "uid": "vIBgFwfTCwM9MF50Dwhj",
286
- "PIED CARRÉ": "648 pi2",
287
- "PRIX": "1460$/mois",
288
- "url_uid": 9,
289
- "index": 19,
290
- "TAILLE": "3 ½",
291
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
292
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
293
- "APP": "Appartement 542"
294
- },
295
- {
296
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
297
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
298
- "TAILLE": "3 ½",
299
- "RABAIS": "Rabais de 130$/mois",
300
- "DISPONIBILITÉ": "01 août 2024",
301
- "PIED CARRÉ": "648 pi2",
302
- "APP": "Appartement 631",
303
- "PRIX": "1540$/mois",
304
- "url_uid": 9,
305
- "index": 20,
306
- "uid": "HGWnW0sEbKRAsRmcH6hK",
307
- "ÉTAGE": "Étage 6",
308
- "timestamp": 1714939931495
309
- },
310
- {
311
- "index": 21,
312
- "DISPONIBILITÉ": "01 août 2024",
313
- "timestamp": 1714939931495,
314
- "uid": "JLaZLdDoGMgKxZTf7jFV",
315
- "url_uid": 9,
316
- "PIED CARRÉ": "657 pi2",
317
- "RABAIS": "Rabais de 130$/mois",
318
- "PRIX": "1560$/mois",
319
- "TAILLE": "3 ½",
320
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
321
- "APP": "Appartement 632",
322
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
323
- "ÉTAGE": "Étage 6"
324
- },
325
- {
326
- "DISPONIBILITÉ": "01 août 2024",
327
- "PIED CARRÉ": "610 pi2",
328
- "TAILLE": "3 ½",
329
- "timestamp": 1714939931495,
330
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
331
- "url_uid": 9,
332
- "uid": "aMhmHTqzYhvlmYDPAAx2",
333
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
334
- "index": 22,
335
- "ÉTAGE": "Étage 6",
336
- "RABAIS": "Rabais de 120$/mois",
337
- "APP": "Appartement 636",
338
- "PRIX": "1460$/mois"
339
- },
340
- {
341
- "RABAIS": "Rabais de 120$/mois",
342
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
343
- "DISPONIBILITÉ": "01 août 2024",
344
- "TAILLE": "3 ½",
345
- "uid": "zszbNLaQY4REHEcY8ZIa",
346
- "PRIX": "1470$/mois",
347
- "APP": "Appartement 638",
348
- "index": 23,
349
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
350
- "timestamp": 1714939931495,
351
- "PIED CARRÉ": "612 pi2",
352
- "url_uid": 9,
353
- "ÉTAGE": "Étage 6"
354
- },
355
- {
356
- "uid": "GpOhxEK9Q0ZanBhJd8BZ",
357
- "timestamp": 1714939931495,
358
- "PRIX": "1560$/mois",
359
- "RABAIS": "Rabais de 130$/mois",
360
- "PIED CARRÉ": "657 pi2",
361
- "TAILLE": "3 ½",
362
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
363
- "DISPONIBILITÉ": "01 août 2024",
364
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
365
- "APP": "Appartement 640",
366
- "index": 24,
367
- "ÉTAGE": "Étage 6",
368
- "url_uid": 9
369
- },
370
- {
371
- "timestamp": 1714939931495,
372
- "url_uid": 9,
373
- "RABAIS": "Rabais de 120$/mois",
374
- "index": 25,
375
- "ÉTAGE": "Étage 6",
376
- "timestampString": "Sun, 05 May 2024 20:12:11 GMT",
377
- "url": "https://logis-experts.com/immeuble/361-rue-gingras-mojo",
378
- "APP": "Appartement 641",
379
- "DISPONIBILITÉ": "01 août 2024",
380
- "uid": "npHxRR6dsJIfTojdmEq7",
381
- "PIED CARRÉ": "595 pi2",
382
- "PRIX": "1460$/mois",
383
- "TAILLE": "3 ½"
384
- },
385
- {
386
- "PIED CARRÉ": "1010 pi2",
387
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
388
- "ÉTAGE": "Étage 3",
389
- "DISPONIBILITÉ": "01 juillet 2024",
390
- "TAILLE": "4 ½",
391
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
392
- "uid": "m50bvqEA3DQ799VQMQBn",
393
- "index": 26,
394
- "RABAIS": "Rabais de 165$/mois",
395
- "timestamp": 1714939934725,
396
- "PRIX": "1830$/mois",
397
- "APP": "Appartement 302",
398
- "url_uid": 0
399
- },
400
- {
401
- "RABAIS": "Rabais de 125$/mois",
402
- "ÉTAGE": "Étage 4",
403
- "url_uid": 0,
404
- "DISPONIBILITÉ": "01 juillet 2024",
405
- "PIED CARRÉ": "1010 pi2",
406
- "TAILLE": "4 ½",
407
- "APP": "Appartement 402",
408
- "timestamp": 1714939934725,
409
- "index": 27,
410
- "uid": "gp06I7elLNUH8EaCss1T",
411
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
412
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
413
- "PRIX": "1830$/mois"
414
- },
415
- {
416
- "timestamp": 1714939934725,
417
- "uid": "AuA8pQa3VGuqPIwLl5Lz",
418
- "RABAIS": "Rabais de 125$/mois",
419
- "TAILLE": "4 ½",
420
- "PIED CARRÉ": "1010 pi2",
421
- "url_uid": 0,
422
- "PRIX": "1900$/mois",
423
- "index": 28,
424
- "DISPONIBILITÉ": "01 juillet 2024",
425
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
426
- "ÉTAGE": "Étage 5",
427
- "APP": "Appartement 502",
428
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
429
- },
430
- {
431
- "ÉTAGE": "Étage 5",
432
- "timestamp": 1714939934725,
433
- "APP": "Appartement 508",
434
- "PRIX": "1460$/mois",
435
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
436
- "uid": "4tH4y1TwzTiuPBa4lSVd",
437
- "PIED CARRÉ": "677 pi2",
438
- "index": 29,
439
- "TAILLE": "3 ½",
440
- "DISPONIBILITÉ": "01 juillet 2024",
441
- "RABAIS": "Rabais de 125$/mois",
442
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
443
- "url_uid": 0
444
- },
445
- {
446
- "ÉTAGE": "Étage 6",
447
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
448
- "timestamp": 1714939934725,
449
- "RABAIS": "Rabais de 125$/mois",
450
- "url_uid": 0,
451
- "index": 30,
452
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
453
- "DISPONIBILITÉ": "01 juillet 2024",
454
- "PIED CARRÉ": "677 pi2",
455
- "TAILLE": "3 ½",
456
- "PRIX": "1480$/mois",
457
- "uid": "dJ9ZTW0VeHGVZwFNpHBK",
458
- "APP": "Appartement 608"
459
- },
460
- {
461
- "PIED CARRÉ": "1010 pi2",
462
- "uid": "1PhQ4P3t046Xcc7WQuG0",
463
- "TAILLE": "4 ½",
464
- "url_uid": 0,
465
- "DISPONIBILITÉ": "01 juillet 2024",
466
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
467
- "timestamp": 1714939934725,
468
- "ÉTAGE": "Étage 7",
469
- "RABAIS": "Rabais de 125$/mois",
470
- "PRIX": "1940$/mois",
471
- "APP": "Appartement 702",
472
- "index": 31,
473
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT"
474
- },
475
- {
476
- "APP": "Appartement 703",
477
- "RABAIS": "Rabais de 125$/mois",
478
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
479
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
480
- "PRIX": "1470$/mois",
481
- "url_uid": 0,
482
- "PIED CARRÉ": "677 pi2",
483
- "uid": "xTbbrlwVAME1cHtuQwON",
484
- "TAILLE": "3 ½",
485
- "ÉTAGE": "Étage 7",
486
- "DISPONIBILITÉ": "01 juillet 2024",
487
- "timestamp": 1714939934725,
488
- "index": 32
489
- },
490
- {
491
- "PIED CARRÉ": "677 pi2",
492
- "RABAIS": "Rabais de 130$/mois",
493
- "index": 33,
494
- "url_uid": 0,
495
- "APP": "Appartement 708",
496
- "ÉTAGE": "Étage 7",
497
- "timestamp": 1714939934725,
498
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
499
- "PRIX": "1500$/mois",
500
- "DISPONIBILITÉ": "01 juillet 2024",
501
- "uid": "Vg2pOTAlbKX3mUMv9LXg",
502
- "TAILLE": "3 ½",
503
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
504
- },
505
- {
506
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
507
- "ÉTAGE": "Étage 7",
508
- "index": 34,
509
- "PRIX": "1450$/mois",
510
- "TAILLE": "3 ½",
511
- "DISPONIBILITÉ": "01 juillet 2024",
512
- "url_uid": 0,
513
- "RABAIS": "Rabais de 130$/mois",
514
- "timestamp": 1714939934725,
515
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
516
- "PIED CARRÉ": "677 pi2",
517
- "APP": "Appartement 709",
518
- "uid": "gP2Q6v26hDasSqxdbWJe"
519
- },
520
- {
521
- "timestamp": 1714939934725,
522
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
523
- "RABAIS": "Rabais de 130$/mois",
524
- "DISPONIBILITÉ": "01 juillet 2024",
525
- "url_uid": 0,
526
- "TAILLE": "3 ½",
527
- "uid": "1rdBadAFjoaFWvS2dfph",
528
- "ÉTAGE": "Étage 7",
529
- "APP": "Appartement 710",
530
- "PRIX": "1390$/mois",
531
- "PIED CARRÉ": "621 pi2",
532
- "index": 35,
533
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
534
- },
535
- {
536
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
537
- "timestamp": 1714939934725,
538
- "ÉTAGE": "Étage 8",
539
- "RABAIS": "Rabais de 140$/mois",
540
- "uid": "pFuU8plw3NPPTPJ3pwFl",
541
- "PRIX": "1470$/mois",
542
- "DISPONIBILITÉ": "01 juillet 2024",
543
- "TAILLE": "3 ½",
544
- "url_uid": 0,
545
- "PIED CARRÉ": "677 pi2",
546
- "index": 36,
547
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
548
- "APP": "Appartement 801"
549
- },
550
- {
551
- "PRIX": "1960$/mois",
552
- "timestamp": 1714939934725,
553
- "PIED CARRÉ": "1010 pi2",
554
- "DISPONIBILITÉ": "01 juillet 2024",
555
- "APP": "Appartement 802",
556
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
557
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
558
- "index": 37,
559
- "uid": "kQA3iOtrdP8NGMBZlYy0",
560
- "url_uid": 0,
561
- "ÉTAGE": "Étage 8",
562
- "RABAIS": "Rabais de 75$/mois",
563
- "TAILLE": "4 ½"
564
- },
565
- {
566
- "APP": "Appartement 806",
567
- "PRIX": "2000$/mois",
568
- "uid": "xe1EN9FPHbi2Bc4ZZZKL",
569
- "timestamp": 1714939934725,
570
- "ÉTAGE": "Étage 8",
571
- "PIED CARRÉ": "962 pi2",
572
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
573
- "index": 38,
574
- "TAILLE": "4 ½",
575
- "RABAIS": "Rabais de 140$/mois",
576
- "DISPONIBILITÉ": "01 juillet 2024",
577
- "url_uid": 0,
578
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
579
- },
580
- {
581
- "url_uid": 0,
582
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
583
- "DISPONIBILITÉ": "01 juillet 2024",
584
- "ÉTAGE": "Étage 8",
585
- "PRIX": "1490$/mois",
586
- "TAILLE": "3 ½",
587
- "PIED CARRÉ": "677 pi2",
588
- "index": 39,
589
- "uid": "dZEz5asnCyiiLSV20JK7",
590
- "timestamp": 1714939934725,
591
- "APP": "Appartement 808",
592
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
593
- "RABAIS": "Rabais de 140$/mois"
594
- },
595
- {
596
- "index": 40,
597
- "DISPONIBILITÉ": "01 juillet 2024",
598
- "PRIX": "1520$/mois",
599
- "PIED CARRÉ": "677 pi2",
600
- "url_uid": 0,
601
- "ÉTAGE": "Étage 8",
602
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
603
- "RABAIS": "Rabais de 140$/mois",
604
- "timestamp": 1714939934725,
605
- "uid": "EeVh7q1hyKg8zrAnxDqB",
606
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
607
- "TAILLE": "3 ½",
608
- "APP": "Appartement 809"
609
- },
610
- {
611
- "index": 41,
612
- "timestamp": 1714939934725,
613
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
614
- "APP": "Appartement 901",
615
- "DISPONIBILITÉ": "01 juillet 2024",
616
- "uid": "kNtbRecLAN6fYrbyIJ1n",
617
- "url_uid": 0,
618
- "RABAIS": "Rabais de 140$/mois",
619
- "ÉTAGE": "Étage 9",
620
- "PRIX": "1540$/mois",
621
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
622
- "TAILLE": "3 ½",
623
- "PIED CARRÉ": "677 pi2"
624
- },
625
- {
626
- "APP": "Appartement 902",
627
- "PRIX": "1980$/mois",
628
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
629
- "timestamp": 1714939934725,
630
- "TAILLE": "4 ½",
631
- "DISPONIBILITÉ": "01 juillet 2024",
632
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
633
- "index": 42,
634
- "url_uid": 0,
635
- "PIED CARRÉ": "1010 pi2",
636
- "uid": "npyfcLonJlWPidp3EUYI",
637
- "ÉTAGE": "Étage 9",
638
- "RABAIS": "Rabais de 140$/mois"
639
- },
640
- {
641
- "index": 43,
642
- "PIED CARRÉ": "677 pi2",
643
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
644
- "PRIX": "1540$/mois",
645
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
646
- "RABAIS": "Rabais de 130$/mois",
647
- "ÉTAGE": "Étage 9",
648
- "url_uid": 0,
649
- "uid": "MxwGPTUPBJu0y5uVbOiz",
650
- "APP": "Appartement 903",
651
- "TAILLE": "3 ½",
652
- "timestamp": 1714939934725,
653
- "DISPONIBILITÉ": "01 juillet 2024"
654
- },
655
- {
656
- "RABAIS": "Rabais de 140$/mois",
657
- "ÉTAGE": "Étage 9",
658
- "APP": "Appartement 905",
659
- "uid": "oBD1CvLR3MOKvIyqVeDk",
660
- "url_uid": 0,
661
- "PRIX": "1510$/mois",
662
- "index": 44,
663
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
664
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
665
- "DISPONIBILITÉ": "01 juillet 2024",
666
- "timestamp": 1714939934725,
667
- "PIED CARRÉ": "677 pi2",
668
- "TAILLE": "3 ½"
669
- },
670
- {
671
- "APP": "Appartement 907",
672
- "PRIX": "1510$/mois",
673
- "ÉTAGE": "Étage 9",
674
- "DISPONIBILITÉ": "01 juillet 2024",
675
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
676
- "RABAIS": None,
677
- "PIED CARRÉ": "677 pi2",
678
- "TAILLE": "3 ½",
679
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
680
- "index": 45,
681
- "timestamp": 1714939934725,
682
- "url_uid": 0,
683
- "uid": "qnHxb6SbaQIEp880GR0Y"
684
- },
685
- {
686
- "APP": "Appartement 908",
687
- "timestamp": 1714939934725,
688
- "index": 46,
689
- "PRIX": "1540$/mois",
690
- "RABAIS": None,
691
- "DISPONIBILITÉ": "01 juillet 2024",
692
- "ÉTAGE": "Étage 9",
693
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
694
- "uid": "cUgwCSD4cHondui2exlm",
695
- "PIED CARRÉ": "677 pi2",
696
- "TAILLE": "3 ½",
697
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
698
- "url_uid": 0
699
- },
700
- {
701
- "uid": "FdsZlYO5IFRNJ8Zr7iJH",
702
- "DISPONIBILITÉ": "01 juillet 2024",
703
- "RABAIS": None,
704
- "PRIX": "1950$/mois",
705
- "PIED CARRÉ": "1010 pi2",
706
- "timestamp": 1714939934725,
707
- "url_uid": 0,
708
- "index": 47,
709
- "APP": "Appartement 1002",
710
- "TAILLE": "4 ½",
711
- "ÉTAGE": "Étage 10",
712
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
713
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
714
- },
715
- {
716
- "url_uid": 0,
717
- "DISPONIBILITÉ": "01 juillet 2024",
718
- "uid": "RX4zMb9UoluErLNrYBZP",
719
- "TAILLE": "3 ½",
720
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
721
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
722
- "ÉTAGE": "Étage 10",
723
- "timestamp": 1714939934725,
724
- "PIED CARRÉ": "677 pi2",
725
- "APP": "Appartement 1003",
726
- "PRIX": "1530$/mois",
727
- "RABAIS": None,
728
- "index": 48
729
- },
730
- {
731
- "ÉTAGE": "Étage 10",
732
- "uid": "k56lPboIUAvEh7rOfAdv",
733
- "PRIX": "2070$/mois",
734
- "url_uid": 0,
735
- "DISPONIBILITÉ": "01 juillet 2024",
736
- "timestamp": 1714939934725,
737
- "PIED CARRÉ": "962 pi2",
738
- "APP": "Appartement 1006",
739
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
740
- "RABAIS": None,
741
- "index": 49,
742
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
743
- "TAILLE": "4 ½"
744
- },
745
- {
746
- "timestamp": 1714939934725,
747
- "TAILLE": "3 ½",
748
- "PIED CARRÉ": "677 pi2",
749
- "index": 50,
750
- "APP": "Appartement 1101",
751
- "PRIX": "1530$/mois",
752
- "ÉTAGE": "Étage 11",
753
- "uid": "RFuO1FoF5cVjThnqanGi",
754
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
755
- "DISPONIBILITÉ": "01 juillet 2024",
756
- "RABAIS": None,
757
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
758
- "url_uid": 0
759
- },
760
- {
761
- "ÉTAGE": "Étage 11",
762
- "APP": "Appartement 1103",
763
- "url_uid": 0,
764
- "timestamp": 1714939934725,
765
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
766
- "uid": "40TW0KKVivQDRzw6r3jR",
767
- "PIED CARRÉ": "677 pi2",
768
- "index": 51,
769
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
770
- "DISPONIBILITÉ": "01 juillet 2024",
771
- "RABAIS": None,
772
- "PRIX": "1550$/mois",
773
- "TAILLE": "3 ½"
774
- },
775
- {
776
- "uid": "3a78nBBHoxUrRV0HzuMK",
777
- "timestamp": 1714939934725,
778
- "DISPONIBILITÉ": "01 juillet 2024",
779
- "ÉTAGE": "Étage 11",
780
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
781
- "PRIX": "1270$/mois",
782
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
783
- "RABAIS": None,
784
- "PIED CARRÉ": "472 pi2",
785
- "index": 52,
786
- "TAILLE": "Loft",
787
- "url_uid": 0,
788
- "APP": "Appartement 1104"
789
- },
790
- {
791
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
792
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
793
- "url_uid": 0,
794
- "ÉTAGE": "Étage 11",
795
- "uid": "2V2OQSpf8Aa6oq5cWdPm",
796
- "PIED CARRÉ": "677 pi2",
797
- "DISPONIBILITÉ": "01 juillet 2024",
798
- "timestamp": 1714939934725,
799
- "APP": "Appartement 1105",
800
- "PRIX": "1550$/mois",
801
- "TAILLE": "3 ½",
802
- "RABAIS": None,
803
- "index": 53
804
- },
805
- {
806
- "DISPONIBILITÉ": "01 juillet 2024",
807
- "index": 54,
808
- "APP": "Appartement 1106",
809
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
810
- "timestamp": 1714939934725,
811
- "PRIX": "2090$/mois",
812
- "PIED CARRÉ": "962 pi2",
813
- "url_uid": 0,
814
- "ÉTAGE": "Étage 11",
815
- "uid": "UJj3u2aRJbsMYyxMsNWN",
816
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
817
- "TAILLE": "4 ½",
818
- "RABAIS": None
819
- },
820
- {
821
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
822
- "TAILLE": "3 ½",
823
- "ÉTAGE": "Étage 11",
824
- "PIED CARRÉ": "677 pi2",
825
- "DISPONIBILITÉ": "01 juillet 2024",
826
- "index": 55,
827
- "uid": "gIChgNxMZctWZemFd6mN",
828
- "PRIX": "1530$/mois",
829
- "APP": "Appartement 1108",
830
- "timestamp": 1714939934725,
831
- "url_uid": 0,
832
- "RABAIS": None,
833
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
834
- },
835
- {
836
- "DISPONIBILITÉ": "01 juillet 2024",
837
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
838
- "ÉTAGE": "Étage 11",
839
- "TAILLE": "3 ½",
840
- "index": 56,
841
- "uid": "bAwFshiHocQJjB5oaoBf",
842
- "url_uid": 0,
843
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
844
- "PIED CARRÉ": "677 pi2",
845
- "timestamp": 1714939934725,
846
- "PRIX": "1530$/mois",
847
- "APP": "Appartement 1109",
848
- "RABAIS": None
849
- },
850
- {
851
- "RABAIS": None,
852
- "PIED CARRÉ": "677 pi2",
853
- "uid": "DXgE80V5rCZGl636kuBH",
854
- "ÉTAGE": "Étage 12",
855
- "APP": "Appartement 1201",
856
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
857
- "TAILLE": "3 ½",
858
- "url_uid": 0,
859
- "PRIX": "1550$/mois",
860
- "timestamp": 1714939934725,
861
- "index": 57,
862
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
863
- "DISPONIBILITÉ": "01 juillet 2024"
864
- },
865
- {
866
- "PIED CARRÉ": "1010 pi2",
867
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
868
- "PRIX": "2040$/mois",
869
- "timestamp": 1714939934725,
870
- "uid": "mRvbdrU8YlbBJRnP9WPa",
871
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
872
- "APP": "Appartement 1202",
873
- "ÉTAGE": "Étage 12",
874
- "DISPONIBILITÉ": "01 juillet 2024",
875
- "index": 58,
876
- "TAILLE": "4 ½",
877
- "url_uid": 0,
878
- "RABAIS": None
879
- },
880
- {
881
- "uid": "KgseOE5SO9t6fte9ID2r",
882
- "DISPONIBILITÉ": "01 juillet 2024",
883
- "PRIX": "1600$/mois",
884
- "TAILLE": "3 ½",
885
- "ÉTAGE": "Étage 12",
886
- "url_uid": 0,
887
- "PIED CARRÉ": "677 pi2",
888
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
889
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
890
- "timestamp": 1714939934725,
891
- "index": 59,
892
- "RABAIS": None,
893
- "APP": "Appartement 1203"
894
- },
895
- {
896
- "timestamp": 1714939934725,
897
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
898
- "DISPONIBILITÉ": "01 juillet 2024",
899
- "url_uid": 0,
900
- "ÉTAGE": "Étage 12",
901
- "PRIX": "1570$/mois",
902
- "RABAIS": None,
903
- "APP": "Appartement 1205",
904
- "TAILLE": "3 ½",
905
- "uid": "kmOP0yuhSVwdyqFSg6vj",
906
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
907
- "index": 60,
908
- "PIED CARRÉ": "677 pi2"
909
- },
910
- {
911
- "ÉTAGE": "Étage 12",
912
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
913
- "RABAIS": None,
914
- "PRIX": "2060$/mois",
915
- "DISPONIBILITÉ": "01 juillet 2024",
916
- "url_uid": 0,
917
- "uid": "OPfYgFWyag3FGPTTCmkO",
918
- "APP": "Appartement 1206",
919
- "index": 61,
920
- "timestamp": 1714939934725,
921
- "PIED CARRÉ": "962 pi2",
922
- "TAILLE": "4 ½",
923
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
924
- },
925
- {
926
- "DISPONIBILITÉ": "01 juillet 2024",
927
- "url_uid": 0,
928
- "ÉTAGE": "Étage 12",
929
- "RABAIS": None,
930
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
931
- "PIED CARRÉ": "677 pi2",
932
- "index": 62,
933
- "TAILLE": "3 ½",
934
- "APP": "Appartement 1207",
935
- "timestamp": 1714939934725,
936
- "uid": "QhMJEOyG6G8fRBHSuDQt",
937
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
938
- "PRIX": "1550$/mois"
939
- },
940
- {
941
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
942
- "PIED CARRÉ": "677 pi2",
943
- "timestamp": 1714939934725,
944
- "index": 63,
945
- "url_uid": 0,
946
- "uid": "FNpS4z0qXoqmXnRZaghR",
947
- "TAILLE": "3 ½",
948
- "DISPONIBILITÉ": "01 juillet 2024",
949
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
950
- "APP": "Appartement 1401",
951
- "RABAIS": None,
952
- "PRIX": "1700$/mois",
953
- "ÉTAGE": "Étage 13"
954
- },
955
- {
956
- "DISPONIBILITÉ": "01 juillet 2024",
957
- "PRIX": "2090$/mois",
958
- "url_uid": 0,
959
- "PIED CARRÉ": "1010 pi2",
960
- "ÉTAGE": "Étage 13",
961
- "timestamp": 1714939934725,
962
- "TAILLE": "4 ½",
963
- "APP": "Appartement 1402",
964
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
965
- "uid": "3HGRZTJkPvjcorDEmEsx",
966
- "index": 64,
967
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
968
- "RABAIS": None
969
- },
970
- {
971
- "PRIX": "1700$/mois",
972
- "url_uid": 0,
973
- "uid": "dfxfjFUHDO6kEmtXXGHt",
974
- "APP": "Appartement 1403",
975
- "index": 65,
976
- "TAILLE": "3 ½",
977
- "PIED CARRÉ": "677 pi2",
978
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
979
- "ÉTAGE": "Étage 13",
980
- "DISPONIBILITÉ": "01 juillet 2024",
981
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
982
- "timestamp": 1714939934725,
983
- "RABAIS": None
984
- },
985
- {
986
- "PIED CARRÉ": "472 pi2",
987
- "index": 66,
988
- "DISPONIBILITÉ": "01 juillet 2024",
989
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
990
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
991
- "PRIX": "1380$/mois",
992
- "RABAIS": None,
993
- "ÉTAGE": "Étage 13",
994
- "timestamp": 1714939934725,
995
- "uid": "KqmVwJ7iQ2mmuFtXWrvy",
996
- "APP": "Appartement 1404",
997
- "TAILLE": "Loft",
998
- "url_uid": 0
999
- },
1000
- {
1001
- "PRIX": "1700$/mois",
1002
- "TAILLE": "3 ½",
1003
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1004
- "PIED CARRÉ": "677 pi2",
1005
- "index": 67,
1006
- "APP": "Appartement 1405",
1007
- "uid": "VkW1QRnD7jaVtXMPVFqv",
1008
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1009
- "timestamp": 1714939934725,
1010
- "RABAIS": None,
1011
- "DISPONIBILITÉ": "01 juillet 2024",
1012
- "url_uid": 0,
1013
- "ÉTAGE": "Étage 13"
1014
- },
1015
- {
1016
- "uid": "63MjTMwHoNkVwlXr2KJn",
1017
- "TAILLE": "3 ½",
1018
- "ÉTAGE": "Étage 13",
1019
- "APP": "Appartement 1407",
1020
- "PRIX": "1700$/mois",
1021
- "PIED CARRÉ": "677 pi2",
1022
- "url_uid": 0,
1023
- "DISPONIBILITÉ": "01 juillet 2024",
1024
- "RABAIS": None,
1025
- "timestamp": 1714939934725,
1026
- "index": 68,
1027
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1028
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT"
1029
- },
1030
- {
1031
- "index": 69,
1032
- "PIED CARRÉ": "677 pi2",
1033
- "uid": "nIo9o9Pfcs6vHw5Xw50S",
1034
- "url_uid": 0,
1035
- "APP": "Appartement 1408",
1036
- "timestamp": 1714939934725,
1037
- "RABAIS": None,
1038
- "DISPONIBILITÉ": "01 juillet 2024",
1039
- "TAILLE": "3 ½",
1040
- "PRIX": "1700$/mois",
1041
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1042
- "ÉTAGE": "Étage 13",
1043
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave"
1044
- },
1045
- {
1046
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1047
- "PIED CARRÉ": "677 pi2",
1048
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1049
- "DISPONIBILITÉ": "01 juillet 2024",
1050
- "ÉTAGE": "Étage 13",
1051
- "RABAIS": None,
1052
- "index": 70,
1053
- "timestamp": 1714939934725,
1054
- "url_uid": 0,
1055
- "PRIX": "1700$/mois",
1056
- "TAILLE": "3 ½",
1057
- "uid": "ydHdQWRPglBu4RQwy287",
1058
- "APP": "Appartement 1409"
1059
- },
1060
- {
1061
- "DISPONIBILITÉ": "01 juillet 2024",
1062
- "RABAIS": None,
1063
- "PRIX": "1570$/mois",
1064
- "APP": "Appartement 1410",
1065
- "timestamp": 1714939934725,
1066
- "PIED CARRÉ": "621 pi2",
1067
- "TAILLE": "3 ½",
1068
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1069
- "url_uid": 0,
1070
- "ÉTAGE": "Étage 13",
1071
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1072
- "index": 71,
1073
- "uid": "BtSKWExajugxO1yj8BNo"
1074
- },
1075
- {
1076
- "timestamp": 1714939934725,
1077
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1078
- "TAILLE": "3 ½",
1079
- "RABAIS": None,
1080
- "uid": "qCv6jcW6QmF5GrXr36SF",
1081
- "DISPONIBILITÉ": "01 juillet 2024",
1082
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1083
- "PRIX": "1700$/mois",
1084
- "url_uid": 0,
1085
- "APP": "Appartement 1411",
1086
- "PIED CARRÉ": "677 pi2",
1087
- "ÉTAGE": "Étage 13",
1088
- "index": 72
1089
- },
1090
- {
1091
- "TAILLE": "3 ½",
1092
- "ÉTAGE": "Étage 14",
1093
- "url_uid": 0,
1094
- "RABAIS": None,
1095
- "uid": "hTYF54qrRK3DOsR5c8Ba",
1096
- "DISPONIBILITÉ": "01 juillet 2024",
1097
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1098
- "APP": "Appartement 1501",
1099
- "PIED CARRÉ": "677 pi2",
1100
- "timestamp": 1714939934725,
1101
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1102
- "PRIX": "1720$/mois",
1103
- "index": 73
1104
- },
1105
- {
1106
- "RABAIS": None,
1107
- "timestamp": 1714939934725,
1108
- "TAILLE": "4 ½",
1109
- "DISPONIBILITÉ": "01 juillet 2024",
1110
- "url_uid": 0,
1111
- "index": 74,
1112
- "PRIX": "2300$/mois",
1113
- "ÉTAGE": "Étage 14",
1114
- "uid": "z72l2cLRADMs7O8spa7p",
1115
- "PIED CARRÉ": "1010 pi2",
1116
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1117
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1118
- "APP": "Appartement 1502"
1119
- },
1120
- {
1121
- "DISPONIBILITÉ": "01 juillet 2024",
1122
- "index": 75,
1123
- "TAILLE": "4 ½ + bureau",
1124
- "timestamp": 1714939934725,
1125
- "PRIX": "3000$/mois",
1126
- "PIED CARRÉ": "1234 pi2",
1127
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1128
- "url_uid": 0,
1129
- "APP": "Appartement 1505",
1130
- "RABAIS": None,
1131
- "ÉTAGE": "Étage 14",
1132
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1133
- "uid": "TdC4xPW0rppuqpEcA4A4"
1134
- },
1135
- {
1136
- "timestamp": 1714939934725,
1137
- "url_uid": 0,
1138
- "uid": "U1EOAvV42ehS3CVCsFda",
1139
- "RABAIS": None,
1140
- "DISPONIBILITÉ": "01 juillet 2024",
1141
- "index": 76,
1142
- "APP": "Appartement 1509",
1143
- "PIED CARRÉ": "1234 pi2",
1144
- "timestampString": "Sun, 05 May 2024 20:12:14 GMT",
1145
- "PRIX": "3000$/mois",
1146
- "url": "https://logis-experts.com/immeuble/750-chemin-ste-foy-le-brave",
1147
- "ÉTAGE": "Étage 14",
1148
- "TAILLE": "4 ½ + bureau"
1149
- },
1150
- {
1151
- "uid": "vdaxsPOpbAYGYJFMkruG",
1152
- "APP": "Appartement 201",
1153
- "timestamp": 1714939937467,
1154
- "url_uid": 23,
1155
- "PRIX": "1580$/mois",
1156
- "url": "https://logis-experts.com/immeuble/1750-boulevard-pie-xi",
1157
- "RABAIS": None,
1158
- "index": 77,
1159
- "TAILLE": "4 ½",
1160
- "ÉTAGE": "Étage 2",
1161
- "DISPONIBILITÉ": "01 avril 2024",
1162
- "PIED CARRÉ": "1007 pi2",
1163
- "timestampString": "Sun, 05 May 2024 20:12:17 GMT"
1164
- },
1165
- {
1166
- "url_uid": 23,
1167
- "PRIX": "1580$/mois",
1168
- "PIED CARRÉ": "1000 pi2",
1169
- "APP": "Appartement 207",
1170
- "RABAIS": None,
1171
- "timestamp": 1714939937467,
1172
- "ÉTAGE": "Étage 2",
1173
- "uid": "v2ptMvdtzB62kCF9lXm4",
1174
- "timestampString": "Sun, 05 May 2024 20:12:17 GMT",
1175
- "url": "https://logis-experts.com/immeuble/1750-boulevard-pie-xi",
1176
- "DISPONIBILITÉ": "01 avril 2024",
1177
- "index": 78,
1178
- "TAILLE": "4 ½"
1179
- },
1180
- {
1181
- "timestampString": "Sun, 05 May 2024 20:12:29 GMT",
1182
- "PRIX": "1815$/mois",
1183
- "PIED CARRÉ": "996 pi2",
1184
- "ÉTAGE": "Étage 3",
1185
- "index": 79,
1186
- "TAILLE": "4 ½",
1187
- "timestamp": 1714939949421,
1188
- "uid": "mNB0UYf5bdb33CuMOpDY",
1189
- "url_uid": 2,
1190
- "url": "https://logis-experts.com/immeuble/le-natur",
1191
- "RABAIS": None,
1192
- "APP": "Appartement 1221-315",
1193
- "DISPONIBILITÉ": "01 juillet 2024"
1194
- }
1195
- ]
1196
 
1197
- # Fonction pour trouver un appartement par critère
1198
- def trouver_appartement(critere, valeur):
1199
- for appart in appartements:
1200
- if str(appart.get(critere, "")).lower() == valeur.lower():
1201
- return appart
1202
- return None
 
1203
 
1204
- # Fonction pour générer la réponse de GPT-4
1205
- def query_gpt(question, appartement):
1206
- if appartement:
1207
- data_context = ". ".join([f"{key}: {value}" for key, value in appartement.items() if value is not None])
1208
- prompt = f"{data_context}\n\nQuestion: {question}\nRéponse:"
1209
- else:
1210
- prompt = f"Question: {question}\nRéponse: Je suis désolé, mais aucun appartement correspondant n'a été trouvé."
1211
-
1212
- response = openai.Completion.create(
1213
- model="gpt-4-turbo", # Remplacez par gpt-4 si nécessaire
1214
- prompt=prompt,
1215
- max_tokens=1000,
1216
- api_key="openai_api_key", # Utilisez votre clé API OpenAI
1217
- temperature=0.5
1218
- )
1219
- return response.choices[0].text.strip()
1220
 
1221
- # Interface utilisateur Streamlit
1222
- st.title("Assistant pour informations sur les appartements")
 
 
1223
 
1224
- user_query = st.text_input("Demandez-moi quelque chose à propos de l'appartement:")
1225
- appartement_id = st.text_input("Veuillez entrer l'ID ou un autre critère distinctif de l'appartement:")
 
 
 
 
1226
 
1227
- if user_query and appartement_id:
1228
- appartement = trouver_appartement('uid', appartement_id) # Utilisez l'UID ou autre critère pour trouver l'appartement
1229
- answer = query_gpt(user_query, appartement)
1230
- st.write("Réponse:", answer)
 
 
 
 
 
 
 
 
 
 
1
+ from openai import OpenAI
2
  import streamlit as st
3
+ import os
 
 
4
 
5
+ # Fetch the API key from an environment variable
6
  openai_api_key = os.getenv("OPENAI_API_KEY")
7
 
8
+ # Select model using a dropdown
9
+ model_choice = st.selectbox('Choose a model:', ['gpt-4-turbo','gpt-3.5-turbo', 'gpt-3.5-turbo-0125','gpt-3.5-turbo-1106','gpt-3.5-turbo-0613','gpt-3.5-turbo-16k-0613','gpt-3.5-turbo-16k','gpt-4-turbo-2024-04-09','gpt-4-turbo-preview', 'gpt-4-0125-preview','gpt-4-1106-preview','gpt-4-0613'])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
+ # Read system message from a text file
12
+ try:
13
+ with open("system_message.txt", "r") as file:
14
+ system_message = file.read().strip()
15
+ except FileNotFoundError:
16
+ st.error("The system message file was not found. Please make sure 'system_message.txt' exists.")
17
+ st.stop()
18
 
19
+ # Initialize session state for storing messages if it doesn't already exist
20
+ if "messages" not in st.session_state:
21
+ st.session_state["messages"] = [{"role": "system", "content": system_message},
22
+ {"role": "assistant", "content": "How can I help you?"}]
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ # Display all previous messages only when needed
25
+ for msg in st.session_state.messages:
26
+ if msg["role"] != "system": # Skip system messages
27
+ st.chat_message(msg["role"]).write(msg["content"])
28
 
29
+ # Input for new prompts
30
+ prompt = st.chat_input("Enter your question:")
31
+ if prompt:
32
+ if not openai_api_key:
33
+ st.error("No OpenAI API key found. Please set the OPENAI_API_KEY environment variable.")
34
+ st.stop()
35
 
36
+ # Append the new user message to session state
37
+ st.session_state.messages.append({"role": "user", "content": prompt})
38
+ st.chat_message("user").write(prompt)
39
+
40
+ # Use a spinner to indicate that the model is generating a response
41
+ with st.spinner('PromptingAI is Thinking...'):
42
+ client = OpenAI(api_key=openai_api_key)
43
+ response = client.chat.completions.create(model=model_choice, messages=st.session_state.messages)
44
+ msg = response.choices[0].message.content
45
+
46
+ # Append and display the assistant's response
47
+ st.session_state.messages.append({"role": "assistant", "content": msg})
48
+ st.chat_message("assistant").write(msg)