bhaskartripathi commited on
Commit
11848f9
·
1 Parent(s): af4fe59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -194,8 +194,8 @@ with gr.Blocks() as demo:
194
  answer = gr.Textbox(label='The answer to your question is :')
195
  #history_box = gr.Textbox(label='History of Questions and Answers', value='', type='output', lines=10)
196
  #history_box = gr.Textbox(label='History of Questions and Answers', value='', output=True, lines=10)
197
- history_box = gr.Textbox(label='History of Questions and Answers', value='', lines=10)
198
-
199
  #btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
200
  btn.click(question_answer, inputs=[url, file, question,openAI_key, history], outputs=[answer, history_box])
201
  #openai.api_key = os.getenv('Your_Key_Here')
 
194
  answer = gr.Textbox(label='The answer to your question is :')
195
  #history_box = gr.Textbox(label='History of Questions and Answers', value='', type='output', lines=10)
196
  #history_box = gr.Textbox(label='History of Questions and Answers', value='', output=True, lines=10)
197
+ #history_box = gr.Textbox(label='History of Questions and Answers', value='', lines=10)
198
+ history_box = gr.Textbox(label='History of Questions and Answers', value='', type='text', lines=10)
199
  #btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
200
  btn.click(question_answer, inputs=[url, file, question,openAI_key, history], outputs=[answer, history_box])
201
  #openai.api_key = os.getenv('Your_Key_Here')