Nikhil0987 commited on
Commit
21b869f
·
verified ·
1 Parent(s): e141969

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -75,15 +75,18 @@ def render_file(file):
75
  # Gradio application setup
76
  with gr.Blocks() as demo:
77
  with gr.Column():
78
- gr.Markdown("""
79
- <style>
80
- .image-container { /* Customize this class name if needed */
81
- height: 680px;
82
- }
83
- </style>
84
- """)
85
-
 
 
86
  with gr.Row():
 
87
  show_img = gr.Image(label='Upload PDF')
88
 
89
  # Set up event handlers
 
75
  # Gradio application setup
76
  with gr.Blocks() as demo:
77
  with gr.Column():
78
+ gr.Markdown("""
79
+ <style>
80
+ .image-container { height: 680px; }
81
+ </style>
82
+ """)
83
+ with gr.Row():
84
+ enable_box = gr.Textbox(placeholder='Enter OpenAI API key',
85
+ show_label=False, interactive=True)
86
+ disable_box = gr.Textbox(value='OpenAI API key is Set', interactive=False)
87
+ change_api_key = gr.Button('Change Key')
88
  with gr.Row():
89
+ chatbot = gr.Chatbot(value=[], elem_id='chatbot')
90
  show_img = gr.Image(label='Upload PDF')
91
 
92
  # Set up event handlers