Update app.py
Browse files
app.py
CHANGED
@@ -324,7 +324,7 @@ def prepare_meeting(json_input):
|
|
324 |
|
325 |
### Gradio Demo ###
|
326 |
with gr.Blocks() as demo:
|
327 |
-
gr.Markdown("## Curify:
|
328 |
|
329 |
with gr.Row():
|
330 |
# Column 1: Webpage rendering
|
@@ -334,18 +334,18 @@ with gr.Blocks() as demo:
|
|
334 |
# Shared Button: Fetch content, show webpage, and summary/perspectives
|
335 |
fetch_btn = gr.Button("Fetch and Process Webpage")
|
336 |
text_output = gr.Textbox(label="Webpage Content", lines=7)
|
337 |
-
# Column 2: Summary and Perspectives
|
338 |
-
with gr.Column():
|
339 |
-
gr.Markdown("## Summary & Perspectives")
|
340 |
summary_output = gr.Textbox(label="Summary", lines=5)
|
341 |
perspectives_output = gr.Textbox(label="Perspectives", lines=5)
|
342 |
-
|
343 |
-
# Column
|
344 |
with gr.Column():
|
345 |
gr.Markdown("## Interactive Chatbot")
|
346 |
chatbot_history_gr = gr.Chatbot(label="Chat History")
|
347 |
user_input = gr.Textbox(label="Ask a Question", placeholder="Type your question here...")
|
348 |
chatbot_btn = gr.Button("Send")
|
|
|
|
|
|
|
349 |
reflection_btn = gr.Button("Generate reflection")
|
350 |
reflection_output = gr.Textbox(label="Reflections", lines=5)
|
351 |
|
|
|
324 |
|
325 |
### Gradio Demo ###
|
326 |
with gr.Blocks() as demo:
|
327 |
+
gr.Markdown("## Curify Digest: Transforms how you consume and interact with content")
|
328 |
|
329 |
with gr.Row():
|
330 |
# Column 1: Webpage rendering
|
|
|
334 |
# Shared Button: Fetch content, show webpage, and summary/perspectives
|
335 |
fetch_btn = gr.Button("Fetch and Process Webpage")
|
336 |
text_output = gr.Textbox(label="Webpage Content", lines=7)
|
|
|
|
|
|
|
337 |
summary_output = gr.Textbox(label="Summary", lines=5)
|
338 |
perspectives_output = gr.Textbox(label="Perspectives", lines=5)
|
339 |
+
|
340 |
+
# Column 2: Interactive chatbot
|
341 |
with gr.Column():
|
342 |
gr.Markdown("## Interactive Chatbot")
|
343 |
chatbot_history_gr = gr.Chatbot(label="Chat History")
|
344 |
user_input = gr.Textbox(label="Ask a Question", placeholder="Type your question here...")
|
345 |
chatbot_btn = gr.Button("Send")
|
346 |
+
|
347 |
+
# Column 3: Generate reflections
|
348 |
+
with gr.Column():
|
349 |
reflection_btn = gr.Button("Generate reflection")
|
350 |
reflection_output = gr.Textbox(label="Reflections", lines=5)
|
351 |
|