JiheonJeong commited on
Commit
4ae55cf
·
1 Parent(s): c09ea5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -180,19 +180,21 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
180
  with gr.Row():
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="prompt 1")
 
 
185
  text2 = gr.Textbox(label="prompt 2")
186
  text3 = gr.Textbox(label="prompt 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
190
- state = gr.State([]) #s
191
- with gr.Row():
192
- with gr.Column(scale=7):
193
- b1 = gr.Button("Submission", visible=not DISABLED)
194
- with gr.Column(scale=3):
195
- server_status_code = gr.Textbox(label="Status code from OpenAI server", )
196
  with gr.Row():
197
  with gr.Column(scale=7):
198
  b0 = gr.Button('Random Sample', visible=not DISABLED)
 
180
  with gr.Row():
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
+ for idx in range(TOTAL_K):
185
+ setattr()
186
+ text1 = gr.Textbox(label="Random Sample1")
187
  text2 = gr.Textbox(label="prompt 2")
188
  text3 = gr.Textbox(label="prompt 3")
189
 
190
+ # chatbot = gr.Chatbot(elem_id='chatbot') #c
191
+ # inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter") #t
192
+ # state = gr.State([]) #s
193
+ # with gr.Row():
194
+ # with gr.Column(scale=7):
195
+ # b1 = gr.Button("Submission", visible=not DISABLED)
196
+ # with gr.Column(scale=3):
197
+ # server_status_code = gr.Textbox(label="Status code from OpenAI server", )
198
  with gr.Row():
199
  with gr.Column(scale=7):
200
  b0 = gr.Button('Random Sample', visible=not DISABLED)