Spaces:
Runtime error
Runtime error
Commit
·
e4d904e
1
Parent(s):
399560a
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import random
|
|
5 |
|
6 |
co = cohere.Client(os.environ['CO_API_KEY'])
|
7 |
# initialize a conversation session id
|
8 |
-
cohere_chat_res_start = co.chat("
|
9 |
conv_session_id = cohere_chat_res_start.session_id
|
10 |
|
11 |
whisper = gr.Interface.load(name="spaces/sanchit-gandhi/whisper-large-v2")
|
@@ -134,7 +134,7 @@ with gr.Blocks(title='Talk to CatGPT') as demo:
|
|
134 |
label="Record Audio Input",
|
135 |
|
136 |
)
|
137 |
-
translate_btn = gr.Button("Check
|
138 |
|
139 |
#whisper_task = gr.Radio(["translate", "transcribe"], value="translate", show_label=False)
|
140 |
with gr.Row(elem_id="prompt_row"):
|
|
|
5 |
|
6 |
co = cohere.Client(os.environ['CO_API_KEY'])
|
7 |
# initialize a conversation session id
|
8 |
+
cohere_chat_res_start = co.chat("Hi", persona = "catgpt")
|
9 |
conv_session_id = cohere_chat_res_start.session_id
|
10 |
|
11 |
whisper = gr.Interface.load(name="spaces/sanchit-gandhi/whisper-large-v2")
|
|
|
134 |
label="Record Audio Input",
|
135 |
|
136 |
)
|
137 |
+
translate_btn = gr.Button("Check text first ?👍")
|
138 |
|
139 |
#whisper_task = gr.Radio(["translate", "transcribe"], value="translate", show_label=False)
|
140 |
with gr.Row(elem_id="prompt_row"):
|