neovalle commited on
Commit
24ea4f9
Β·
verified Β·
1 Parent(s): 87ae801

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -8
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.Markdown("# 🌲 **Wild Voices** β€” *Listening to the More-than-Human World*")
89
- gr.Markdown("Ask questions to rivers, trees, owls, and more. Generate myths and facts, and let nature's wisdom respond.")
 
 
 
 
 
 
 
 
90
 
91
  with gr.Row():
92
- persona1 = gr.Dropdown(personas, label="Choose First Persona", value="Tree")
93
  persona2 = gr.Dropdown(personas, label="Choose Second Persona", value="Crow")
94
 
95
  with gr.Row():
96
- user_input = gr.Textbox(label="🌱 Your Question", placeholder="e.g., What do you think of humans?", lines=2)
97
- random_button = gr.Button("🎲 Generate Random Question")
98
- myth_fact_button = gr.Button("πŸ” Generate Random Myth/Fact")
 
 
99
 
100
  with gr.Row():
101
  ask_button = gr.Button("🌎 Submit Question")
102
 
103
  with gr.Row():
104
- output1 = gr.Textbox(label=f"{persona1.value} Responds")
105
- output2 = gr.Textbox(label="Fact-Checker Responds")
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])