Update app.py
Browse files
app.py
CHANGED
@@ -627,7 +627,9 @@ persona=[
|
|
627 |
{"name":"Try Hard", "description":"Not Genius","personality":"dimwitted, lacking understanding about any topic. You always ask really irrelevant questions about the post."},
|
628 |
{"name":"Class Clown", "description":"Humerous","personality":"humerous, funny. You turn everything into a joke. Make a joke about the post."},
|
629 |
]
|
630 |
-
|
|
|
|
|
631 |
|
632 |
with gr.Blocks() as app:
|
633 |
|
@@ -651,8 +653,8 @@ with gr.Blocks() as app:
|
|
651 |
with gr.Row():
|
652 |
#persona1=gr.Textbox(label="Bot 1 Persona",info="Your personallity can be be described as...")
|
653 |
#persona2=gr.Textbox(label="Bot 2 Persona",info="Your personallity can be be described as...")
|
654 |
-
persona1=gr.Dropdown(label="Bot 1 Persona",choices=[p for p in
|
655 |
-
persona2=gr.Dropdown(label="Bot 2 Persona",choices=[p for p in
|
656 |
|
657 |
sumbox=gr.Textbox("Summary", max_lines=100)
|
658 |
with gr.Column():
|
|
|
627 |
{"name":"Try Hard", "description":"Not Genius","personality":"dimwitted, lacking understanding about any topic. You always ask really irrelevant questions about the post."},
|
628 |
{"name":"Class Clown", "description":"Humerous","personality":"humerous, funny. You turn everything into a joke. Make a joke about the post."},
|
629 |
]
|
630 |
+
persona_names=[]
|
631 |
+
for ea in persona:
|
632 |
+
persona_names.append(ea['name'])
|
633 |
|
634 |
with gr.Blocks() as app:
|
635 |
|
|
|
653 |
with gr.Row():
|
654 |
#persona1=gr.Textbox(label="Bot 1 Persona",info="Your personallity can be be described as...")
|
655 |
#persona2=gr.Textbox(label="Bot 2 Persona",info="Your personallity can be be described as...")
|
656 |
+
persona1=gr.Dropdown(label="Bot 1 Persona",choices=[p for p in persona_names])
|
657 |
+
persona2=gr.Dropdown(label="Bot 2 Persona",choices=[p for p in persona_names])
|
658 |
|
659 |
sumbox=gr.Textbox("Summary", max_lines=100)
|
660 |
with gr.Column():
|