bhaskartripathi commited on
Commit
ae0c4bc
·
1 Parent(s): 9dab1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -190,7 +190,7 @@ with gr.Blocks() as demo:
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
 
 
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