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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -26
app.py CHANGED
@@ -77,36 +77,14 @@ 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)
91
- with gr.Column(scale=0.2):
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', style={"height": "680px"})
97
-
98
- with gr.Row():
99
- with gr.Column(scale=0.70):
100
- txt = gr.Textbox(
101
- show_label=False,
102
- placeholder="Enter text and press enter"
103
- ).style(container=False)
104
-
105
- with gr.Column(scale=0.15):
106
- submit_btn = gr.Button('Submit')
107
-
108
- with gr.Column(scale=0.15):
109
- btn = gr.UploadButton("📁 Upload a PDF", file_types=[".pdf"]).style()
110
 
111
  # Set up event handlers
112
 
 
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
90