Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -577,8 +577,7 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
| 577 |
chatbot.like(print_like_dislike, None, None)
|
| 578 |
clear_button = gr.Button("Clear")
|
| 579 |
clear_button.click(fn=clear_textbox, inputs=None, outputs=chat_input)
|
| 580 |
-
|
| 581 |
-
# audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
|
| 582 |
|
| 583 |
gr.Markdown("<h1>Talk to RADAR</h1>", elem_id="voice-markdown")
|
| 584 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
|
@@ -602,9 +601,10 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
| 602 |
image_output_3 = gr.Image(value=generate_image(hardcoded_prompt_3), width=400, height=400)
|
| 603 |
|
| 604 |
|
|
|
|
|
|
|
| 605 |
|
| 606 |
-
|
| 607 |
-
|
| 608 |
# def setup_ui():
|
| 609 |
# state = gr.State()
|
| 610 |
# with gr.Row():
|
|
@@ -648,19 +648,6 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
| 648 |
|
| 649 |
|
| 650 |
# setup_ui()
|
| 651 |
-
demo.queue()
|
| 652 |
-
demo.launch(share=True)
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
|
| 665 |
# with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
| 666 |
# with gr.Row():
|
|
@@ -718,8 +705,7 @@ demo.launch(share=True)
|
|
| 718 |
# demo.queue()
|
| 719 |
# demo.launch(share=True)
|
| 720 |
|
| 721 |
-
|
| 722 |
-
|
| 723 |
|
| 724 |
|
| 725 |
|
|
|
|
| 577 |
chatbot.like(print_like_dislike, None, None)
|
| 578 |
clear_button = gr.Button("Clear")
|
| 579 |
clear_button.click(fn=clear_textbox, inputs=None, outputs=chat_input)
|
| 580 |
+
|
|
|
|
| 581 |
|
| 582 |
gr.Markdown("<h1>Talk to RADAR</h1>", elem_id="voice-markdown")
|
| 583 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
|
|
|
| 601 |
image_output_3 = gr.Image(value=generate_image(hardcoded_prompt_3), width=400, height=400)
|
| 602 |
|
| 603 |
|
| 604 |
+
demo.queue()
|
| 605 |
+
demo.launch(share=True)
|
| 606 |
|
| 607 |
+
#**************************************************************************************************************************************************************************
|
|
|
|
| 608 |
# def setup_ui():
|
| 609 |
# state = gr.State()
|
| 610 |
# with gr.Row():
|
|
|
|
| 648 |
|
| 649 |
|
| 650 |
# setup_ui()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 651 |
|
| 652 |
# with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
| 653 |
# with gr.Row():
|
|
|
|
| 705 |
# demo.queue()
|
| 706 |
# demo.launch(share=True)
|
| 707 |
|
| 708 |
+
#*************************************************************************************************************************************************************************
|
|
|
|
| 709 |
|
| 710 |
|
| 711 |
|