Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,24 +85,34 @@ personas = [os.path.splitext(f)[0].capitalize() for f in os.listdir("instruction
|
|
85 |
# Gradio Interface
|
86 |
with gr.Blocks() as demo:
|
87 |
with gr.Row():
|
88 |
-
gr.
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
with gr.Row():
|
92 |
-
persona1 = gr.Dropdown(personas, label="Choose First Persona", value="
|
93 |
persona2 = gr.Dropdown(personas, label="Choose Second Persona", value="Crow")
|
94 |
|
95 |
with gr.Row():
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
99 |
|
100 |
with gr.Row():
|
101 |
ask_button = gr.Button("π Submit Question")
|
102 |
|
103 |
with gr.Row():
|
104 |
-
output1 = gr.Textbox(label=
|
105 |
-
output2 = gr.Textbox(label="
|
106 |
|
107 |
# Button events
|
108 |
random_button.click(fn=get_random_question, inputs=[], outputs=[user_input])
|
|
|
85 |
# Gradio Interface
|
86 |
with gr.Blocks() as demo:
|
87 |
with gr.Row():
|
88 |
+
with gr.Column(scale=0.15):
|
89 |
+
gr.Image(value="data/WildVoices.png", label="Wild Voices", show_label=False)
|
90 |
+
with gr.Column():
|
91 |
+
gr.Markdown("""
|
92 |
+
# π² **Wild Voices**
|
93 |
+
*Listening to the More-than-Human World*
|
94 |
+
Ask questions to rivers, trees, owls, and more. Generate myths and facts, and let nature's wisdom respond.
|
95 |
+
You can also generate random questions or myth/fact prompts.
|
96 |
+
|
97 |
+
""")
|
98 |
|
99 |
with gr.Row():
|
100 |
+
persona1 = gr.Dropdown(personas, label="Choose First Persona", value="Earth")
|
101 |
persona2 = gr.Dropdown(personas, label="Choose Second Persona", value="Crow")
|
102 |
|
103 |
with gr.Row():
|
104 |
+
with gr.Column(scale=0.15):
|
105 |
+
user_input = gr.Textbox(label="π± Your Question", placeholder="e.g., What do you think of humans?", lines=2)
|
106 |
+
with gr.Column(scale=0.15):
|
107 |
+
random_button = gr.Button("π² Generate Random Question")
|
108 |
+
myth_fact_button = gr.Button("π Generate Random Myth/Fact")
|
109 |
|
110 |
with gr.Row():
|
111 |
ask_button = gr.Button("π Submit Question")
|
112 |
|
113 |
with gr.Row():
|
114 |
+
output1 = gr.Textbox(label="Persona One Responds")
|
115 |
+
output2 = gr.Textbox(label="Persona Two Responds")
|
116 |
|
117 |
# Button events
|
118 |
random_button.click(fn=get_random_question, inputs=[], outputs=[user_input])
|