Spaces:
Build error
Build error
remove some comment
Browse files
app.py
CHANGED
|
@@ -19,26 +19,6 @@ pipe = pipeline(
|
|
| 19 |
from openai import OpenAI
|
| 20 |
from concurrent.futures import ThreadPoolExecutor
|
| 21 |
import tiktoken
|
| 22 |
-
#from google.colab import userdata
|
| 23 |
-
# class OpenAIKeyClass:
|
| 24 |
-
# def __init__(self, api_key):
|
| 25 |
-
# self.api_key = api_key
|
| 26 |
-
|
| 27 |
-
# def get_key(self):
|
| 28 |
-
|
| 29 |
-
# return self.api_key
|
| 30 |
-
|
| 31 |
-
# def set_key(self, api_key):
|
| 32 |
-
# self.api_key = api_key
|
| 33 |
-
|
| 34 |
-
# # 建立一個 OpenAIKeyClass 物件
|
| 35 |
-
# openaikey=OpenAIKeyClass("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")
|
| 36 |
-
# # Add your own OpenAI API key
|
| 37 |
-
# client = OpenAI(
|
| 38 |
-
# # This is the default and can be omitted
|
| 39 |
-
|
| 40 |
-
# api_key=openaikey.get_key(),
|
| 41 |
-
# )
|
| 42 |
|
| 43 |
|
| 44 |
|
|
|
|
| 19 |
from openai import OpenAI
|
| 20 |
from concurrent.futures import ThreadPoolExecutor
|
| 21 |
import tiktoken
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
|