Update app.py
Browse files
app.py
CHANGED
@@ -440,28 +440,30 @@ with gr.Blocks() as app:
|
|
440 |
html = gr.HTML()
|
441 |
|
442 |
chatbot=gr.Chatbot(visible=False)
|
443 |
-
msg = gr.Textbox()
|
444 |
with gr.Row():
|
445 |
-
|
|
|
|
|
|
|
|
|
446 |
submit_b = gr.Button("Blog Post")
|
447 |
submit_c = gr.Button("Comment")
|
448 |
-
|
|
|
449 |
submit_r = gr.Button("OP Reply")
|
450 |
-
|
|
|
|
|
451 |
stop_b = gr.Button("Stop")
|
452 |
clear = gr.ClearButton([msg, chatbot])
|
453 |
|
454 |
-
with gr.Row():
|
455 |
m_choice=gr.Dropdown(label="Models",type='index',choices=[c for c in models],value=models[0],interactive=True)
|
456 |
tokens = gr.Slider(label="Max new tokens",value=1600,minimum=0,maximum=8000,step=64,interactive=True, visible=True,info="The maximum number of tokens")
|
457 |
-
|
458 |
-
#persona1=gr.Textbox(label="Bot 1 Persona",info="Your personallity can be be described as...")
|
459 |
-
#persona2=gr.Textbox(label="Bot 2 Persona",info="Your personallity can be be described as...")
|
460 |
-
persona1=gr.Dropdown(label="Bot 1 Persona",value=persona_names[0],type='index',choices=[p for p in persona_names])
|
461 |
-
persona2=gr.Dropdown(label="Bot 2 Persona",value=persona_names[3],type='index',choices=[p for p in persona_names])
|
462 |
|
463 |
-
|
464 |
-
|
465 |
sum_out_box=gr.JSON(label="Summaries")
|
466 |
hist_out_box=gr.JSON(label="History")
|
467 |
|
|
|
440 |
html = gr.HTML()
|
441 |
|
442 |
chatbot=gr.Chatbot(visible=False)
|
|
|
443 |
with gr.Row():
|
444 |
+
persona1=gr.Dropdown(label="Bot 1 Persona",value=persona_names[0],type='index',choices=[p for p in persona_names])
|
445 |
+
persona2=gr.Dropdown(label="Bot 2 Persona",value=persona_names[3],type='index',choices=[p for p in persona_names])
|
446 |
+
with gr.Group():
|
447 |
+
msg = gr.Textbox(label="Optional Prompting")
|
448 |
+
with gr.Row():
|
449 |
submit_b = gr.Button("Blog Post")
|
450 |
submit_c = gr.Button("Comment")
|
451 |
+
with gr.Group():
|
452 |
+
with gr.Row():
|
453 |
submit_r = gr.Button("OP Reply")
|
454 |
+
reply_num= gr.Number(label="Replying to Comment:", value=0)
|
455 |
+
with gr.Group():
|
456 |
+
with gr.Row():
|
457 |
stop_b = gr.Button("Stop")
|
458 |
clear = gr.ClearButton([msg, chatbot])
|
459 |
|
460 |
+
with gr.Row(visible=False):
|
461 |
m_choice=gr.Dropdown(label="Models",type='index',choices=[c for c in models],value=models[0],interactive=True)
|
462 |
tokens = gr.Slider(label="Max new tokens",value=1600,minimum=0,maximum=8000,step=64,interactive=True, visible=True,info="The maximum number of tokens")
|
463 |
+
|
|
|
|
|
|
|
|
|
464 |
|
465 |
+
with gr.Column(visible=False):
|
466 |
+
sumbox=gr.Textbox("Summary", max_lines=100)
|
467 |
sum_out_box=gr.JSON(label="Summaries")
|
468 |
hist_out_box=gr.JSON(label="History")
|
469 |
|