Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import warnings
|
3 |
import json
|
4 |
-
import openai
|
5 |
import os
|
6 |
|
7 |
import tiktoken
|
@@ -12,7 +12,7 @@ from langchain.document_loaders import PyPDFLoader
|
|
12 |
|
13 |
warnings.filterwarnings('ignore')
|
14 |
|
15 |
-
openai.api_key = "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"
|
16 |
|
17 |
|
18 |
def num_tokens_from_string(string: str, encoding_name: str) -> int:
|
|
|
1 |
import gradio as gr
|
2 |
import warnings
|
3 |
import json
|
4 |
+
#import openai
|
5 |
import os
|
6 |
|
7 |
import tiktoken
|
|
|
12 |
|
13 |
warnings.filterwarnings('ignore')
|
14 |
|
15 |
+
#openai.api_key = "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"
|
16 |
|
17 |
|
18 |
def num_tokens_from_string(string: str, encoding_name: str) -> int:
|