Hashintha commited on
Commit
5bc4f0b
·
1 Parent(s): cc77887

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,5 +1,9 @@
1
  from response_parser import *
2
  import gradio as gr
 
 
 
 
3
 
4
 
5
  def initialization(state_dict: Dict) -> None:
@@ -123,7 +127,7 @@ if __name__ == '__main__':
123
  # UI components
124
  state = gr.State(value={"bot_backend": None})
125
  with gr.Tab("Chat"):
126
- chatbot = gr.Chatbot([], elem_id="chatbot", label="Local Code Interpreter", height=440)
127
  with gr.Row():
128
  with gr.Column(scale=0.85):
129
  text_box = gr.Textbox(
@@ -182,4 +186,4 @@ if __name__ == '__main__':
182
  block.load(fn=initialization, inputs=[state])
183
 
184
  block.queue()
185
- block.launch(inbrowser=True)
 
1
  from response_parser import *
2
  import gradio as gr
3
+ import os
4
+
5
+ USERNAME = os.getenv('USERNAME')
6
+ PASSWORD = os.getenv('PASSWORD')
7
 
8
 
9
  def initialization(state_dict: Dict) -> None:
 
127
  # UI components
128
  state = gr.State(value={"bot_backend": None})
129
  with gr.Tab("Chat"):
130
+ chatbot = gr.Chatbot([], elem_id="chatbot", label="Local Code Interpreter", height=500)
131
  with gr.Row():
132
  with gr.Column(scale=0.85):
133
  text_box = gr.Textbox(
 
186
  block.load(fn=initialization, inputs=[state])
187
 
188
  block.queue()
189
+ block.launch(inbrowser=True , auth=(USERNAME, PASSWORD))