jackycedar commited on
Commit
e018609
·
1 Parent(s): c01bfcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -14
app.py CHANGED
@@ -398,20 +398,23 @@ In this app, you can explore the outputs of a gpt-3.5 LLM.
398
  # theme = gr.themes.Default(primary_hue="green")
399
 
400
  with gr.Blocks() as demo:
401
- gr.Markdown(
402
- """
403
- # PDF Summariser
404
- (powered by OPENAI and LangChain)
405
- """)
406
- user_token = gr.Textbox(
407
- show_label=True,
408
- placeholder=f"OpenAI API-key...",
409
- # value=hide_middle_chars(my_api_key),
410
- type="password",
411
- # visible=not HIDE_MY_KEY,
412
- label="API-Key (Copy and Paste Here)"
413
- )
414
- user_token.change(on_token_change, inputs=[user_token], outputs=[])
 
 
 
415
  with gr.Tab("Summarise PDF"):
416
  with gr.Row():
417
  with gr.Column(scale=4):
 
398
  # theme = gr.themes.Default(primary_hue="green")
399
 
400
  with gr.Blocks() as demo:
401
+ with gr.Row():
402
+ with gr.Column(scale=4):
403
+ gr.Markdown(
404
+ """
405
+ # PDF Summariser
406
+ (powered by OPENAI and LangChain)
407
+ """)
408
+ with gr.Column(scale=1):
409
+ user_token = gr.Textbox(
410
+ show_label=True,
411
+ placeholder=f"OpenAI API-key...",
412
+ # value=hide_middle_chars(my_api_key),
413
+ type="password",
414
+ # visible=not HIDE_MY_KEY,
415
+ label="API-Key (Copy and Paste Here)"
416
+ )
417
+ user_token.change(on_token_change, inputs=[user_token], outputs=[])
418
  with gr.Tab("Summarise PDF"):
419
  with gr.Row():
420
  with gr.Column(scale=4):