Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,11 +18,6 @@ import numpy as np
|
|
18 |
import pandas as pd
|
19 |
import whisper
|
20 |
|
21 |
-
|
22 |
-
# whisper_model = whisper.load_model("medium").to("cuda")
|
23 |
-
# tts_model = VitsModel.from_pretrained("facebook/mms-tts-pol")
|
24 |
-
# tts_model.to("cuda")
|
25 |
-
# print("TTS Loaded!")
|
26 |
DESCRIPTION = """\
|
27 |
# Ai Trek - Generative AI usage
|
28 |
This Space demonstrates LAIONBOT functionalities,
|
@@ -166,6 +161,8 @@ def predict(audio, _chatbot, _task_history):
|
|
166 |
audio_file = read_text(_parse_text(full_response)) # Generowanie audio
|
167 |
return full_response
|
168 |
|
|
|
|
|
169 |
def regenerate(_chatbot, _task_history):
|
170 |
if not _task_history:
|
171 |
yield _chatbot
|
|
|
18 |
import pandas as pd
|
19 |
import whisper
|
20 |
|
|
|
|
|
|
|
|
|
|
|
21 |
DESCRIPTION = """\
|
22 |
# Ai Trek - Generative AI usage
|
23 |
This Space demonstrates LAIONBOT functionalities,
|
|
|
161 |
audio_file = read_text(_parse_text(full_response)) # Generowanie audio
|
162 |
return full_response
|
163 |
|
164 |
+
|
165 |
+
@spaces.GPU
|
166 |
def regenerate(_chatbot, _task_history):
|
167 |
if not _task_history:
|
168 |
yield _chatbot
|