Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,25 @@ async def main():
|
|
152 |
|
153 |
# Create a Gradio interface
|
154 |
with gr.Blocks(title='Chatbot Demo') as demo:
|
155 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
chatbot = gr.Chatbot(
|
158 |
[[None, Bot_dialog.nodes["START A"]["response"]]],
|
|
|
152 |
|
153 |
# Create a Gradio interface
|
154 |
with gr.Blocks(title='Chatbot Demo') as demo:
|
155 |
+
gr.Markdown(
|
156 |
+
"""
|
157 |
+
<div style="text-align: center;">
|
158 |
+
<h1 style="font-weight: bold; font-size: 30px;">Insurance Voicebot Demo</h1>
|
159 |
+
</div>
|
160 |
+
<div style="text-align: left;">
|
161 |
+
<p style="font-weight: bold; font-size: 20px;"><strong>To try this demo follow these steps.</strong></p>
|
162 |
+
</div>
|
163 |
+
"""
|
164 |
+
)
|
165 |
+
gr.Markdown("""
|
166 |
+
- From **Audio** block, click **Record** button and speak something to the bot.
|
167 |
+
- When finished recording, click **Stop** button.
|
168 |
+
- Click **Submit Voice✔️** button.
|
169 |
+
- Wait until bot generate text and audio response.
|
170 |
+
- From **Generated audio response** block, click play button to play bot's audio response.
|
171 |
+
- Continue these steps until you want to restart.
|
172 |
+
"""
|
173 |
+
)
|
174 |
|
175 |
chatbot = gr.Chatbot(
|
176 |
[[None, Bot_dialog.nodes["START A"]["response"]]],
|