Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,9 @@ asr_pl = pipeline(
|
|
38 |
device=device,
|
39 |
)
|
40 |
|
|
|
|
|
|
|
41 |
@spaces.GPU
|
42 |
def respond(
|
43 |
message,
|
@@ -92,12 +95,8 @@ transcribe_interface = gr.Interface(
|
|
92 |
task_input_choice,
|
93 |
],
|
94 |
outputs="text",
|
95 |
-
title=
|
96 |
-
description=
|
97 |
-
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
|
98 |
-
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
99 |
-
" of arbitrary length."
|
100 |
-
),
|
101 |
allow_flagging="never",
|
102 |
)
|
103 |
|
@@ -106,8 +105,6 @@ transcribe_interface = gr.Interface(
|
|
106 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
107 |
"""
|
108 |
|
109 |
-
application_title = "Enlight Innovations Limited -- Demo"
|
110 |
-
application_description = "This demo is desgined to illustrate our basic idea and feasibility in implementation."
|
111 |
chatbot_sys_output = gr.Textbox(value="You are a friendly Chatbot.", label="System message")
|
112 |
chatbot_max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
113 |
chatbot_temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
|
|
|
38 |
device=device,
|
39 |
)
|
40 |
|
41 |
+
application_title = "Enlight Innovations Limited -- Demo"
|
42 |
+
application_description = "This demo is desgined to illustrate our basic idea and feasibility in implementation."
|
43 |
+
|
44 |
@spaces.GPU
|
45 |
def respond(
|
46 |
message,
|
|
|
95 |
task_input_choice,
|
96 |
],
|
97 |
outputs="text",
|
98 |
+
title=application_title,
|
99 |
+
description=application_description,
|
|
|
|
|
|
|
|
|
100 |
allow_flagging="never",
|
101 |
)
|
102 |
|
|
|
105 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
106 |
"""
|
107 |
|
|
|
|
|
108 |
chatbot_sys_output = gr.Textbox(value="You are a friendly Chatbot.", label="System message")
|
109 |
chatbot_max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
110 |
chatbot_temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
|