JiheonJeong commited on
Commit
d56be10
·
1 Parent(s): eefa63e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -160,7 +160,8 @@ Assistant: <utterance>
160
  In this app, you can explore the outputs of a gpt-3.5 LLM.
161
  """
162
 
163
- theme = gr.themes.Default(primary_hue="green")
 
164
  with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
165
  #chatbot {height: 520px; overflow: auto;}""",
166
  theme=theme) as demo:
@@ -181,9 +182,12 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
181
  with gr.Column(scale=7):
182
  image = gr.Image(os.path.join(os.path.dirname(__file__), "data/Court.jpeg"), height = 800, width = 1600)
183
  with gr.Column(scale=3):
184
- text1 = gr.Textbox(label="Random Sample - 1")
185
- text2 = gr.Textbox(label="Random Sample - 2")
186
- text3 = gr.Textbox(label="Random Sample - 3")
 
 
 
187
 
188
  # chatbot = gr.Chatbot(elem_id='chatbot') #c
189
  inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter") #t
 
160
  In this app, you can explore the outputs of a gpt-3.5 LLM.
161
  """
162
 
163
+ theme = gr.themes.Default(primary_hue="green")
164
+ agents = []
165
  with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
166
  #chatbot {height: 520px; overflow: auto;}""",
167
  theme=theme) as demo:
 
182
  with gr.Column(scale=7):
183
  image = gr.Image(os.path.join(os.path.dirname(__file__), "data/Court.jpeg"), height = 800, width = 1600)
184
  with gr.Column(scale=3):
185
+ for idx in range(TOTAL_K):
186
+ agents.append(gr.Textvox(label=f"Random Sample - {idx+1}"))
187
+
188
+ # text1 = gr.Textbox(label="Random Sample - 1")
189
+ # text2 = gr.Textbox(label="Random Sample - 2")
190
+ # text3 = gr.Textbox(label="Random Sample - 3")
191
 
192
  # chatbot = gr.Chatbot(elem_id='chatbot') #c
193
  inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter") #t