michaelmc1618 commited on
Commit
a6cda22
·
verified ·
1 Parent(s): 2dc82f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -183,28 +183,28 @@ with gr.Blocks(css=custom_css) as demo:
183
  history1 = gr.State([])
184
  history2 = gr.State([])
185
  shared_history = gr.State([])
186
- message = gr.Textbox(label="Shared Input Box")
187
- system_message1 = gr.State("You are an expert at legal Prosecution.")
188
- system_message2 = gr.State("You are an expert at legal Defense.")
189
  max_tokens = gr.State(512) # Adjusted to balance response length
190
- temperature = gr.State(0.7)
191
  top_p = gr.State(0.95)
192
 
193
  with gr.Row():
194
  with gr.Column(scale=4):
195
- prosecutor_response = gr.Textbox(label="Prosecutor's Response", interactive=False)
196
  with gr.Column(scale=1):
197
  prosecutor_score_color = gr.HTML()
198
 
199
  with gr.Row():
200
  with gr.Column(scale=4):
201
- defense_response = gr.Textbox(label="Defense Attorney's Response", interactive=False)
202
  with gr.Column(scale=1):
203
  defense_score_color = gr.HTML()
204
 
205
- shared_argument = gr.Textbox(label="Shared Argument", interactive=False)
206
 
207
- submit_btn = gr.Button("Submit")
208
 
209
  submit_btn.click(chat_between_bots, inputs=[system_message1, system_message2, max_tokens, temperature, top_p, history1, history2, shared_history, message], outputs=[prosecutor_response, defense_response, history1, history2, shared_history, shared_argument, prosecutor_score_color, defense_score_color])
210
 
 
183
  history1 = gr.State([])
184
  history2 = gr.State([])
185
  shared_history = gr.State([])
186
+ message = gr.Textbox(label="Case to Argue")
187
+ system_message1 = gr.State("You are an expert at arguing legal Prosecution cases.")
188
+ system_message2 = gr.State("You are an expert at arguing legal Defense cases.")
189
  max_tokens = gr.State(512) # Adjusted to balance response length
190
+ temperature = gr.State(0.6)
191
  top_p = gr.State(0.95)
192
 
193
  with gr.Row():
194
  with gr.Column(scale=4):
195
+ prosecutor_response = gr.Textbox(label="Prosecutor's Response", interactive=True)
196
  with gr.Column(scale=1):
197
  prosecutor_score_color = gr.HTML()
198
 
199
  with gr.Row():
200
  with gr.Column(scale=4):
201
+ defense_response = gr.Textbox(label="Defense Attorney's Response", interactive=True)
202
  with gr.Column(scale=1):
203
  defense_score_color = gr.HTML()
204
 
205
+ shared_argument = gr.Textbox(label="Case Outcome", interactive=True)
206
 
207
+ submit_btn = gr.Button("Argue")
208
 
209
  submit_btn.click(chat_between_bots, inputs=[system_message1, system_message2, max_tokens, temperature, top_p, history1, history2, shared_history, message], outputs=[prosecutor_response, defense_response, history1, history2, shared_history, shared_argument, prosecutor_score_color, defense_score_color])
210