New Changes
Browse files
app.py
CHANGED
@@ -197,10 +197,10 @@ def question_answer(url, file, question,openAI_key):
|
|
197 |
|
198 |
recommender = SemanticSearch()
|
199 |
|
200 |
-
title = '
|
201 |
-
description = """
|
202 |
-
1.
|
203 |
-
2.
|
204 |
|
205 |
with gr.Blocks() as demo:
|
206 |
|
@@ -220,7 +220,7 @@ with gr.Blocks() as demo:
|
|
220 |
btn.style(full_width=True)
|
221 |
|
222 |
with gr.Group():
|
223 |
-
answer = gr.Textbox(label='
|
224 |
|
225 |
btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
226 |
#openai.api_key = os.getenv('Your_Key_Here')
|
|
|
197 |
|
198 |
recommender = SemanticSearch()
|
199 |
|
200 |
+
title = 'Chat with Your PDFs'
|
201 |
+
description = """ Instructions
|
202 |
+
1. Input your API Key
|
203 |
+
2. Upload PDF"""
|
204 |
|
205 |
with gr.Blocks() as demo:
|
206 |
|
|
|
220 |
btn.style(full_width=True)
|
221 |
|
222 |
with gr.Group():
|
223 |
+
answer = gr.Textbox(label='Answer :')
|
224 |
|
225 |
btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
226 |
#openai.api_key = os.getenv('Your_Key_Here')
|