Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ print(os.environ["OPENAI_API_KEY"])
|
|
| 24 |
"""# Preprocessing document"""
|
| 25 |
|
| 26 |
# location of the pdf file/files.
|
| 27 |
-
reader = PdfReader('
|
| 28 |
|
| 29 |
# read data from the file
|
| 30 |
raw_text = ''
|
|
@@ -132,9 +132,9 @@ with gr.Blocks() as demo:
|
|
| 132 |
chat,
|
| 133 |
chatbot=chatbot,
|
| 134 |
title="Doc-chat",
|
| 135 |
-
description="Ask about The
|
| 136 |
theme="soft",
|
| 137 |
-
examples=["Who is the
|
| 138 |
cache_examples=True,
|
| 139 |
retry_btn=None,
|
| 140 |
undo_btn="Delete Previous",
|
|
|
|
| 24 |
"""# Preprocessing document"""
|
| 25 |
|
| 26 |
# location of the pdf file/files.
|
| 27 |
+
reader = PdfReader('The_Little_Prince.pdf')
|
| 28 |
|
| 29 |
# read data from the file
|
| 30 |
raw_text = ''
|
|
|
|
| 132 |
chat,
|
| 133 |
chatbot=chatbot,
|
| 134 |
title="Doc-chat",
|
| 135 |
+
description="Ask about The Little Prince!",
|
| 136 |
theme="soft",
|
| 137 |
+
examples=["Who is the Little Prince?","What is the capital of France?"],
|
| 138 |
cache_examples=True,
|
| 139 |
retry_btn=None,
|
| 140 |
undo_btn="Delete Previous",
|