Nikhil0987 commited on
Commit
9073766
·
verified ·
1 Parent(s): cd0c597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -75,9 +75,16 @@ def render_file(file):
75
  # Gradio application setup
76
  with gr.Blocks() as demo:
77
  with gr.Column():
 
 
 
 
 
 
 
 
78
  with gr.Row():
79
- with gr.Column(scale=0.8):
80
- # Removed .style() part
81
  enable_box = gr.Textbox(placeholder='Enter OpenAI API key',
82
  show_label=False, interactive=True)
83
  disable_box = gr.Textbox(value='OpenAI API key is Set', interactive=False)
@@ -85,7 +92,7 @@ with gr.Blocks() as demo:
85
  change_api_key = gr.Button('Change Key')
86
 
87
  with gr.Row():
88
- chatbot = gr.Chatbot(value=[], elem_id='chatbot').style(height=650)
89
  show_img = gr.Image(label='Upload PDF', tool='select').style(height=680)
90
 
91
  with gr.Row():
 
75
  # Gradio application setup
76
  with gr.Blocks() as demo:
77
  with gr.Column():
78
+ gr.Markdown("""
79
+ <style>
80
+ .chatbot { /* Adjust this class name if needed */
81
+ height: 650px;
82
+ /* Other styles, e.g., background-color, border, etc. */
83
+ }
84
+ </style>
85
+ """)
86
  with gr.Row():
87
+ with gr.Column(scale=0.8):
 
88
  enable_box = gr.Textbox(placeholder='Enter OpenAI API key',
89
  show_label=False, interactive=True)
90
  disable_box = gr.Textbox(value='OpenAI API key is Set', interactive=False)
 
92
  change_api_key = gr.Button('Change Key')
93
 
94
  with gr.Row():
95
+ chatbot = gr.Chatbot(value=[], elem_id='chatbot') # Removed .style()
96
  show_img = gr.Image(label='Upload PDF', tool='select').style(height=680)
97
 
98
  with gr.Row():