Spaces:
Runtime error
Runtime error
Commit
·
9dab1aa
1
Parent(s):
683d9c9
Update app.py
Browse files
app.py
CHANGED
@@ -188,13 +188,9 @@ with gr.Blocks() as demo:
|
|
188 |
|
189 |
with gr.Group():
|
190 |
answer = gr.Textbox(label='The answer to your question is :')
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
#btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
195 |
btn.click(question_answer, inputs=[url, file, question,openAI_key, history], outputs=[answer, history_box])
|
196 |
-
|
197 |
-
|
198 |
#openai.api_key = os.getenv('Your_Key_Here')
|
199 |
demo.launch()
|
200 |
|
|
|
188 |
|
189 |
with gr.Group():
|
190 |
answer = gr.Textbox(label='The answer to your question is :')
|
191 |
+
history_box = gr.Textbox(label='History of Questions and Answers', value='', type='output', lines=10)
|
|
|
|
|
192 |
#btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
193 |
btn.click(question_answer, inputs=[url, file, question,openAI_key, history], outputs=[answer, history_box])
|
|
|
|
|
194 |
#openai.api_key = os.getenv('Your_Key_Here')
|
195 |
demo.launch()
|
196 |
|