changed the audio button location , rename the button text and changed the file name
This commit is contained in:
@@ -400,11 +400,6 @@ with gr.Blocks(title="Figma Onboarding Assistant", theme=gr.themes.Soft(), css=c
|
|||||||
)
|
)
|
||||||
submit_btn = gr.Button("Ask", scale=1, variant="primary")
|
submit_btn = gr.Button("Ask", scale=1, variant="primary")
|
||||||
clear_btn = gr.Button("Clear Chat", scale=1)
|
clear_btn = gr.Button("Clear Chat", scale=1)
|
||||||
audio_btn = gr.Button("🔊 Text To Audio", scale=1, variant="secondary")
|
|
||||||
clear_audio_btn = gr.Button("🔇 Clear Audio", scale=1, variant="secondary")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Your components with simple styling
|
# Your components with simple styling
|
||||||
@@ -414,6 +409,9 @@ with gr.Blocks(title="Figma Onboarding Assistant", theme=gr.themes.Soft(), css=c
|
|||||||
placeholder="Ask me anything about Figma! For example: 'How do I create a component?' or 'What are frames in Figma?'",
|
placeholder="Ask me anything about Figma! For example: 'How do I create a component?' or 'What are frames in Figma?'",
|
||||||
elem_classes=["styled-chat"]
|
elem_classes=["styled-chat"]
|
||||||
)
|
)
|
||||||
|
with gr.Row():
|
||||||
|
audio_btn = gr.Button("🔊 Text To Audio", scale=1, variant="primary")
|
||||||
|
clear_audio_btn = gr.Button("🔇 Clear Audio", scale=2, variant="secondary")
|
||||||
|
|
||||||
audio_output = gr.Audio(
|
audio_output = gr.Audio(
|
||||||
label="Audio Response",
|
label="Audio Response",
|
||||||
@@ -409,11 +409,6 @@
|
|||||||
" )\n",
|
" )\n",
|
||||||
" submit_btn = gr.Button(\"Ask\", scale=1, variant=\"primary\")\n",
|
" submit_btn = gr.Button(\"Ask\", scale=1, variant=\"primary\")\n",
|
||||||
" clear_btn = gr.Button(\"Clear Chat\", scale=1)\n",
|
" clear_btn = gr.Button(\"Clear Chat\", scale=1)\n",
|
||||||
" audio_btn = gr.Button(\"🔊 Text To Audio\", scale=1, variant=\"secondary\")\n",
|
|
||||||
" clear_audio_btn = gr.Button(\"🔇 Clear Audio\", scale=1, variant=\"secondary\")\n",
|
|
||||||
" \n",
|
|
||||||
"\n",
|
|
||||||
" \n",
|
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Your components with simple styling\n",
|
" # Your components with simple styling\n",
|
||||||
@@ -423,6 +418,9 @@
|
|||||||
" placeholder=\"Ask me anything about Figma! For example: 'How do I create a component?' or 'What are frames in Figma?'\",\n",
|
" placeholder=\"Ask me anything about Figma! For example: 'How do I create a component?' or 'What are frames in Figma?'\",\n",
|
||||||
" elem_classes=[\"styled-chat\"]\n",
|
" elem_classes=[\"styled-chat\"]\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
|
" with gr.Row():\n",
|
||||||
|
" audio_btn = gr.Button(\"🔊 Text To Audio\", scale=1, variant=\"primary\")\n",
|
||||||
|
" clear_audio_btn = gr.Button(\"🔇 Clear Audio\", scale=1, variant=\"secondary\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
" audio_output = gr.Audio(\n",
|
" audio_output = gr.Audio(\n",
|
||||||
" label=\"Audio Response\",\n",
|
" label=\"Audio Response\",\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user