Spaces:
Running
Running
HarleyCoops
commited on
Commit
·
c85e590
1
Parent(s):
0d287db
updated
Browse files
app.py
CHANGED
@@ -544,10 +544,15 @@ def process_follow_up(message, history):
|
|
544 |
def create_interface():
|
545 |
"""Create and configure the Gradio interface"""
|
546 |
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
547 |
-
gr.Markdown(
|
548 |
-
|
|
|
|
|
|
|
549 |
|
550 |
-
|
|
|
|
|
551 |
gr.HTML("""
|
552 |
<style>
|
553 |
.gradio-container {
|
@@ -569,7 +574,7 @@ def create_interface():
|
|
569 |
}
|
570 |
</style>
|
571 |
""")
|
572 |
-
|
573 |
# Auto-trigger the initial prompt on page load
|
574 |
def on_load():
|
575 |
response = process_initial_prompt()
|
@@ -577,9 +582,18 @@ def create_interface():
|
|
577 |
for chunk in response:
|
578 |
response_text += chunk.text
|
579 |
yield [[None, response_text]]
|
580 |
-
|
581 |
demo.load(on_load, None, [chatbot])
|
582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
return demo
|
584 |
|
585 |
# Create and launch the interface
|
|
|
544 |
def create_interface():
|
545 |
"""Create and configure the Gradio interface"""
|
546 |
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
547 |
+
gr.Markdown(
|
548 |
+
"# You are Asking Google Deep Mind about "
|
549 |
+
"\"From Whispers to Voices\", "
|
550 |
+
"it will need a few seconds to think"
|
551 |
+
)
|
552 |
|
553 |
+
chatbot = gr.Chatbot(show_label=False)
|
554 |
+
|
555 |
+
# Add custom CSS for a wider chat window and better scrolling.
|
556 |
gr.HTML("""
|
557 |
<style>
|
558 |
.gradio-container {
|
|
|
574 |
}
|
575 |
</style>
|
576 |
""")
|
577 |
+
|
578 |
# Auto-trigger the initial prompt on page load
|
579 |
def on_load():
|
580 |
response = process_initial_prompt()
|
|
|
582 |
for chunk in response:
|
583 |
response_text += chunk.text
|
584 |
yield [[None, response_text]]
|
585 |
+
|
586 |
demo.load(on_load, None, [chatbot])
|
587 |
+
|
588 |
+
# This HTML goes at the bottom of the Blocks (visually at the bottom of the page)
|
589 |
+
gr.HTML("""
|
590 |
+
<div style="text-align: center; font-size: 24px; margin-top: 30px; margin-bottom: 20px;">
|
591 |
+
<a href="https://github.com/HarleyCoops/StoneyNakoda.git" style="text-decoration: none;">
|
592 |
+
Take me to "From Whispers to Voices: A "Community-In-The-Loop" Proposal for Model Distillation and Language Preservation"
|
593 |
+
</a>
|
594 |
+
</div>
|
595 |
+
""")
|
596 |
+
|
597 |
return demo
|
598 |
|
599 |
# Create and launch the interface
|