wholewhale
commited on
Commit
•
41297e0
1
Parent(s):
bbb69a1
gpt3 test
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ os.environ['OPENAI_API_KEY'] = os.getenv("Your_API_Key")
|
|
15 |
last_interaction_time = 0
|
16 |
|
17 |
def loading_pdf():
|
18 |
-
return "Working on the upload..."
|
19 |
|
20 |
def pdf_changes(pdf_doc):
|
21 |
loader = OnlinePDFLoader(pdf_doc.name)
|
@@ -32,7 +32,6 @@ def pdf_changes(pdf_doc):
|
|
32 |
return_source_documents=False)
|
33 |
return "Ready"
|
34 |
|
35 |
-
|
36 |
def clear_data():
|
37 |
global qa
|
38 |
qa = None
|
@@ -111,4 +110,4 @@ with gr.Blocks(css=css) as demo:
|
|
111 |
bot, chatbot, chatbot
|
112 |
)
|
113 |
|
114 |
-
demo.launch()
|
|
|
15 |
last_interaction_time = 0
|
16 |
|
17 |
def loading_pdf():
|
18 |
+
return "Working on the upload. Also, pondering the usefulness of sporks..."
|
19 |
|
20 |
def pdf_changes(pdf_doc):
|
21 |
loader = OnlinePDFLoader(pdf_doc.name)
|
|
|
32 |
return_source_documents=False)
|
33 |
return "Ready"
|
34 |
|
|
|
35 |
def clear_data():
|
36 |
global qa
|
37 |
qa = None
|
|
|
110 |
bot, chatbot, chatbot
|
111 |
)
|
112 |
|
113 |
+
demo.launch()
|