Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,9 @@ import openai
|
|
2 |
import gradio as gr
|
3 |
import os, sys, json
|
4 |
from loguru import logger
|
5 |
-
import paddlehub as hub
|
6 |
import random
|
7 |
|
8 |
-
openai.api_key = os.environ.get('SessionToken')
|
9 |
-
session_token = os.environ.get('SessionToken')
|
10 |
logger.info(f"session_token_: {session_token}")
|
11 |
|
12 |
def get_api():
|
|
|
2 |
import gradio as gr
|
3 |
import os, sys, json
|
4 |
from loguru import logger
|
|
|
5 |
import random
|
6 |
|
7 |
+
openai.api_key = os.environ.get('SessionToken')
|
|
|
8 |
logger.info(f"session_token_: {session_token}")
|
9 |
|
10 |
def get_api():
|