Spaces:
Runtime error
Runtime error
Commit
·
edcf089
1
Parent(s):
b5f663f
Update app.py
Browse files
app.py
CHANGED
@@ -3,16 +3,11 @@ import gradio as gr
|
|
3 |
import os, json
|
4 |
import random
|
5 |
|
6 |
-
import torch
|
7 |
-
|
8 |
co = cohere.Client(os.environ.get('COHERE_API_KEY'))
|
9 |
# initialize a conversation session id
|
10 |
cohere_chat_res_start = co.chat("Hi")
|
11 |
conv_session_id = cohere_chat_res_start.session_id
|
12 |
|
13 |
-
|
14 |
-
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
15 |
-
|
16 |
whisper = gr.Interface.load(name="spaces/sanchit-gandhi/whisper-large-v2")
|
17 |
|
18 |
|
|
|
3 |
import os, json
|
4 |
import random
|
5 |
|
|
|
|
|
6 |
co = cohere.Client(os.environ.get('COHERE_API_KEY'))
|
7 |
# initialize a conversation session id
|
8 |
cohere_chat_res_start = co.chat("Hi")
|
9 |
conv_session_id = cohere_chat_res_start.session_id
|
10 |
|
|
|
|
|
|
|
11 |
whisper = gr.Interface.load(name="spaces/sanchit-gandhi/whisper-large-v2")
|
12 |
|
13 |
|