bhaskartripathi commited on
Commit
ce0b170
1 Parent(s): a886e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -246,6 +246,8 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 1200; }""") as dem
246
 
247
  with gr.Group():
248
  gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a href="https://platform.openai.com/account/api-keys">here</a></p>')
 
 
249
  url = gr.Textbox(label='Enter PDF URL here (Example: https://arxiv.org/pdf/1706.06722.pdf )')
250
  gr.Markdown("<center><h4>OR<h4></center>")
251
  file = gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf'])
@@ -271,8 +273,7 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 1200; }""") as dem
271
  with gr.Group():
272
  chatbot = gr.Chatbot(placeholder="Chat History", label="Chat History", lines=50, elem_id="chatbot")
273
 
274
- with gr.Accordion("API Key"):
275
- openAI_key = gr.Textbox(label='Enter your OpenAI API key here', password=True)
276
 
277
  # Bind the click event of the button to the question_answer function
278
  btn.click(
 
246
 
247
  with gr.Group():
248
  gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a href="https://platform.openai.com/account/api-keys">here</a></p>')
249
+ with gr.Accordion("API Key"):
250
+ openAI_key = gr.Textbox(label='Enter your OpenAI API key here', password=True)
251
  url = gr.Textbox(label='Enter PDF URL here (Example: https://arxiv.org/pdf/1706.06722.pdf )')
252
  gr.Markdown("<center><h4>OR<h4></center>")
253
  file = gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf'])
 
273
  with gr.Group():
274
  chatbot = gr.Chatbot(placeholder="Chat History", label="Chat History", lines=50, elem_id="chatbot")
275
 
276
+
 
277
 
278
  # Bind the click event of the button to the question_answer function
279
  btn.click(