Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,16 +4,9 @@
|
|
4 |
from pyChatGPT import ChatGPT
|
5 |
import os
|
6 |
|
|
|
7 |
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
# Save the session_token variable to the system environment
|
13 |
-
os.environ['SESSION_TOKEN'] = session_token
|
14 |
-
|
15 |
-
# Load the saved session_token value from the system environment
|
16 |
-
loaded_session_token = os.environ['SESSION_TOKEN']
|
17 |
def chat_hf(text,session_tokenz):
|
18 |
|
19 |
|
|
|
4 |
from pyChatGPT import ChatGPT
|
5 |
import os
|
6 |
|
7 |
+
# refresh the authorization token
|
8 |
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
def chat_hf(text,session_tokenz):
|
11 |
|
12 |
|