Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,9 @@ def chat_hf(text,session_tokenz):
|
|
16 |
|
17 |
# Load the saved session_token value from the system environment
|
18 |
loaded_session_token = os.environ['Sessionkeyz']
|
19 |
-
|
20 |
-
api = ChatGPT(
|
|
|
21 |
resp = api.send_message(text)
|
22 |
|
23 |
|
|
|
16 |
|
17 |
# Load the saved session_token value from the system environment
|
18 |
loaded_session_token = os.environ['Sessionkeyz']
|
19 |
+
session_token='eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..mSU2Bih8U-Gbwl-L.SVQvNyNTsGMEVeyO1SNCKrivpBEgzB_8dEo-frhTGyQFrgk7nBr4gqjYjpxniZX0U3uEWunn_74YAtEUzzbShA55zRDWbElQVoMeTQs2_bM_fVqIEbg6UNuqDtkrMhPr3J3tij4IJSn9Eg2wy0zEWFBbN4wYHmyGPWpc24PClgH8WcwNV00QvkblmAw8X1L-D8uwmOhqXLhasr0kbCqgTm1jW60dTlGslRWMK7G4cVbnbEuwMnNXhKWx3MY5-Jbn4Ssi3CvSb8PsJevbWB3iLsdEhP5SUXiIsFU2szAWH-fTeRte5D1obZVF8sI5VWNTNbROln-w1fNW3kJ7XGyTUtQJ4Tqxk9Yd6r6bjZIuTIUfSwhcSwYtWjzRJaTgvRYjzi5CpMwVgNQgZ-VKLzTKqyb0ZXYv2iMwNwW3vDsy7XESHCVxbKF5xzIvo_pa_UIUazziN8fBeI2T7dR2PIdaP5fnjWX4G4cq5VFrkDwYUBhaBNf0b499Pk0Wvd_3425O_WsO6TrzOUGFyQWBrZOTTti9vmZe6dJ-imV_CVzRnXXBgSbNu9SvUvFX07872EYnDl55i48xydtKyiducabjtC-WG_8nJX312ltPV7KLUEruV943B6oj1QH0s_YACO9IxWZ5PcxDrK4UBxT_5VaAIjuosck2U9-jCt8a5lQoAfrvB7nhFTiMvh0_cB7ZTqDAxRTAvaC3yD-YyUQWLwWLSm8VoCPbVlPabX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zAJrNUEKVAOib-QSnD9R_arnhj-poZKHHqiiGqT0V5QcRXTBXHV5AuMcTn56NHtnJ0FERtf3T4RH9MHtbkqAK41D_yJH_tYhRZZwU9sygHblkY34g1X95XBZVB2nL0o1IeNRZ5CWclfKKfr9o2cRQqj9HyD7PD48paxoGNc3bZ5xWgjqv_1-ixUtwKWBgArY7S1DQwKMHLmdaycOPlSPqxv5diyjvjxYHtThXibh58mxdvwWKreV99TI23NXl4EaynaziZST21Tg-SwOJz_x30T1wAOi5p54SpX4rBDamZXhzVmvT4Qxjd-61VSzJIq5WB5eoIIsZIl66N-Q-bXm1_TflDiiY97JCxlmQAjeABGB8PQh05YozcVlJZXwulYM-U-JUQzOZOfERheXTteQMbx-S5AofwA9ZHgw4DgOBbUMYJS-BWqiYBzdej2gxjxdoj8ul0Gpo4shThPf-A7-YQqFHdd87MYD3Zg2W21t5CDPrNzMWEjOp-n5Dgfum8zv5bj0j-EtAIfRqg66Ch58ny9sECCZvluBrYaop4XjfH4q_.fdtq7gNDgruu5U_ww28O0g'
|
20 |
+
api = ChatGPT(session_token)
|
21 |
+
# api = ChatGPT(loaded_session_token)
|
22 |
resp = api.send_message(text)
|
23 |
|
24 |
|