bhaskartripathi commited on
Commit
68d8de0
·
1 Parent(s): e6a00e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -189,7 +189,9 @@ with gr.Blocks() as demo:
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')
 
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
+ history_box = gr.Textbox(label='History of Questions and Answers', value='', lines=10)
194
+
195
  #btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
196
  btn.click(question_answer, inputs=[url, file, question,openAI_key, history], outputs=[answer, history_box])
197
  #openai.api_key = os.getenv('Your_Key_Here')