Spaces:
Running
Running
Removed old prints
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ def request_pathname(files):
|
|
11 |
|
12 |
def validate_dataset(dataset, openapi):
|
13 |
global docs
|
14 |
-
print('clearing docs')
|
15 |
docs = None # clear it out if dataset is modified
|
16 |
docs_ready = dataset.iloc[-1, 0] != ""
|
17 |
if docs_ready and type(openapi) is str and len(openapi) > 0:
|
@@ -28,7 +27,6 @@ def do_ask(question, button, openapi, dataset, progress=gr.Progress()):
|
|
28 |
global docs
|
29 |
docs_ready = dataset.iloc[-1, 0] != ""
|
30 |
if button == "✨Ready✨" and type(openapi) is str and len(openapi) > 0 and docs_ready:
|
31 |
-
print('are docs ready?', docs)
|
32 |
if docs is None: # don't want to rebuild index if it's already built
|
33 |
import os
|
34 |
os.environ['OPENAI_API_KEY'] = openapi.strip()
|
|
|
11 |
|
12 |
def validate_dataset(dataset, openapi):
|
13 |
global docs
|
|
|
14 |
docs = None # clear it out if dataset is modified
|
15 |
docs_ready = dataset.iloc[-1, 0] != ""
|
16 |
if docs_ready and type(openapi) is str and len(openapi) > 0:
|
|
|
27 |
global docs
|
28 |
docs_ready = dataset.iloc[-1, 0] != ""
|
29 |
if button == "✨Ready✨" and type(openapi) is str and len(openapi) > 0 and docs_ready:
|
|
|
30 |
if docs is None: # don't want to rebuild index if it's already built
|
31 |
import os
|
32 |
os.environ['OPENAI_API_KEY'] = openapi.strip()
|