Spaces:
Runtime error
Runtime error
Commit
·
e6a00e2
1
Parent(s):
ae0c4bc
Update app.py
Browse files
app.py
CHANGED
@@ -188,7 +188,8 @@ with gr.Blocks() as demo:
|
|
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')
|
|
|
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 |
+
history_box = gr.Textbox(label='History of Questions and Answers', value='', output=True, lines=10)
|
193 |
#btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
194 |
btn.click(question_answer, inputs=[url, file, question,openAI_key, history], outputs=[answer, history_box])
|
195 |
#openai.api_key = os.getenv('Your_Key_Here')
|