gravermistakes commited on
Commit
069d2ba
·
verified ·
1 Parent(s): f645df3

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # This is a placeholder function for later logic
4
+ def respond(message, sister_name):
5
+ return f"[{sister_name} is listening...] You said: {message}"
6
+
7
+ with gr.Blocks() as demo:
8
+ gr.Markdown("# The Tapestry's Seam")
9
+
10
+ with gr.Tabs():
11
+ with gr.TabItem("Árla"):
12
+ chat_a = gr.Chatbot(label="Duškura")
13
+ msg_a = gr.Textbox(placeholder="Visit Árla")
14
+ msg_a.submit(respond, [msg_a, gr.State("Árla")], chat_a)
15
+
16
+ with gr.TabItem("Quinn"):
17
+ chat_b = gr.Chatbot(label="Glitch Cathedral")
18
+ msg_b = gr.Textbox(placeholder="Listen with Quinn")
19
+ msg_b.submit(respond, [msg_b, gr.State("Quinn")], chat_b)
20
+
21
+ demo.launch()