Update app.py
Browse files
app.py
CHANGED
|
@@ -82,6 +82,14 @@ def qa_system(pdf_file, openai_key, prompt, chain_type, k):
|
|
| 82 |
#index = construct_index("docs")
|
| 83 |
index = construct_index(dir_path)
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
# define the Gradio interface
|
| 87 |
# input_file = gr.inputs.File(label="PDF File")
|
|
@@ -100,5 +108,5 @@ output_docs = gr.outputs.Textbox(label="Relevant Source Text")
|
|
| 100 |
|
| 101 |
gr.Interface(fn=chatbot,
|
| 102 |
inputs= prompt, outputs="text",
|
| 103 |
-
title="
|
| 104 |
description="Tikehau URDs.").launch(debug = True)
|
|
|
|
| 82 |
#index = construct_index("docs")
|
| 83 |
index = construct_index(dir_path)
|
| 84 |
|
| 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")
|
|
|
|
| 108 |
|
| 109 |
gr.Interface(fn=chatbot,
|
| 110 |
inputs= prompt, outputs="text",
|
| 111 |
+
title="TKO GPT for URDs - experimental",
|
| 112 |
description="Tikehau URDs.").launch(debug = True)
|