Spaces:
Sleeping
Sleeping
Update pipeline.py
Browse files- pipeline.py +1 -2
pipeline.py
CHANGED
|
@@ -25,7 +25,6 @@ if USE_OPENAI_CACHE:
|
|
| 25 |
with open(cache_file, 'rb') as file:
|
| 26 |
openai_cache.append(pickle.load(file))
|
| 27 |
|
| 28 |
-
|
| 29 |
def chat_with_gpt(prompt, api_key):
|
| 30 |
if USE_OPENAI_CACHE:
|
| 31 |
filtered_object = list(filter(lambda x: x['prompt'] == prompt, openai_cache))
|
|
@@ -218,4 +217,4 @@ def generate_audio(session_id, json_script, api_key):
|
|
| 218 |
# Convenient function call used by wavjourney_cli
|
| 219 |
def full_steps(session_id, input_text, api_key):
|
| 220 |
json_script = generate_json_file(session_id, input_text, api_key)
|
| 221 |
-
return generate_audio(session_id, json_script, api_key)
|
|
|
|
| 25 |
with open(cache_file, 'rb') as file:
|
| 26 |
openai_cache.append(pickle.load(file))
|
| 27 |
|
|
|
|
| 28 |
def chat_with_gpt(prompt, api_key):
|
| 29 |
if USE_OPENAI_CACHE:
|
| 30 |
filtered_object = list(filter(lambda x: x['prompt'] == prompt, openai_cache))
|
|
|
|
| 217 |
# Convenient function call used by wavjourney_cli
|
| 218 |
def full_steps(session_id, input_text, api_key):
|
| 219 |
json_script = generate_json_file(session_id, input_text, api_key)
|
| 220 |
+
return generate_audio(session_id, json_script, api_key)
|