Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ import sys
|
|
| 17 |
# Set the path of your new directory
|
| 18 |
dir_path = "./docs"
|
| 19 |
|
| 20 |
-
os.environ["OPENAI_API_KEY"] = '
|
| 21 |
|
| 22 |
# Create the directory using the os module
|
| 23 |
os.makedirs(dir_path, exist_ok=True)
|
|
@@ -85,11 +85,7 @@ index = construct_index(dir_path)
|
|
| 85 |
# Describe principles
|
| 86 |
# rephrase the questions example
|
| 87 |
# Examples
|
| 88 |
-
examples_questions = gr.Examples(
|
| 89 |
-
[
|
| 90 |
-
"What is Sofidy to Tikehau?",
|
| 91 |
-
"What is TSO2 ?",
|
| 92 |
-
]
|
| 93 |
|
| 94 |
# define the Gradio interface
|
| 95 |
# input_file = gr.inputs.File(label="PDF File")
|
|
|
|
| 17 |
# Set the path of your new directory
|
| 18 |
dir_path = "./docs"
|
| 19 |
|
| 20 |
+
os.environ["OPENAI_API_KEY"] = ''
|
| 21 |
|
| 22 |
# Create the directory using the os module
|
| 23 |
os.makedirs(dir_path, exist_ok=True)
|
|
|
|
| 85 |
# Describe principles
|
| 86 |
# rephrase the questions example
|
| 87 |
# Examples
|
| 88 |
+
examples_questions = gr.Examples(["What is Sofidy to Tikehau?", "What is TSO2 ?"]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
# define the Gradio interface
|
| 91 |
# input_file = gr.inputs.File(label="PDF File")
|