Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,9 +33,11 @@ from transformers import GPT2TokenizerFast
|
|
| 33 |
################################# VARIABLES #########################################
|
| 34 |
|
| 35 |
USE_INTERFACE = True # Change to False if you want to run the code without the Gradio interface, and instead see a single pre-supplied question
|
| 36 |
-
filepath =
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
# emb_filepath = 'PATH HERE' # Path to document containing saved content embeddings, if applicable
|
| 40 |
COMPLETIONS_MODEL = "text-davinci-003"
|
| 41 |
openai.api_key = 'YOUR KEY' # TAKE OUT WHEN PUBLIC !
|
|
|
|
| 33 |
################################# VARIABLES #########################################
|
| 34 |
|
| 35 |
USE_INTERFACE = True # Change to False if you want to run the code without the Gradio interface, and instead see a single pre-supplied question
|
| 36 |
+
filepath =
|
| 37 |
+
https://huggingface.co/spaces/robjm16/domain_specific_ChatGPT/blob/main/Compilation_investment_outlook_2023%20(2).docx
|
| 38 |
+
# Path to document containing domain content. Initial cleaning of domain content
|
| 39 |
+
# can be done inside (eg, using Python) or outside (eg, using Word),
|
| 40 |
+
# depending on needs and circumstances.
|
| 41 |
# emb_filepath = 'PATH HERE' # Path to document containing saved content embeddings, if applicable
|
| 42 |
COMPLETIONS_MODEL = "text-davinci-003"
|
| 43 |
openai.api_key = 'YOUR KEY' # TAKE OUT WHEN PUBLIC !
|