Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Commit
·
ea1476a
1
Parent(s):
39e3dea
Update app.py
Browse files
app.py
CHANGED
@@ -125,12 +125,12 @@ def get_basics_comp(emb_model, model, default_system_prompt_link, _logger, podca
|
|
125 |
default_system_prompt = str(f.read(), 'UTF-8')
|
126 |
|
127 |
# -- 5. Setup app
|
128 |
-
|
129 |
|
130 |
# -- 6. Setup model
|
131 |
together.api_key = os.environ["TOGETHER_API_KEY"]
|
132 |
#together.Models.start(model)
|
133 |
-
return together,
|
134 |
|
135 |
def clean_chat():
|
136 |
st.session_state.conversation = None
|
@@ -154,7 +154,7 @@ def main():
|
|
154 |
|
155 |
podcast_url_video_df = get_podcast_data(PODCAST_URL_VIDEO_PATH)
|
156 |
|
157 |
-
together,
|
158 |
video_option_joined_path, default_system_prompt, youtube_video_url, genre = get_basics_comp(EMB_MODEL, MODEL, DEFAULT_SYSTEM_PROMPT_LINK, logger,
|
159 |
podcast_url_video_df, img_size=100)
|
160 |
|
|
|
125 |
default_system_prompt = str(f.read(), 'UTF-8')
|
126 |
|
127 |
# -- 5. Setup app
|
128 |
+
nlp, retriever = utils.setup_app(video_option_joined_path, emb_model, model, _logger)
|
129 |
|
130 |
# -- 6. Setup model
|
131 |
together.api_key = os.environ["TOGETHER_API_KEY"]
|
132 |
#together.Models.start(model)
|
133 |
+
return together, nlp, retriever, video_option, video_option_joined_path, default_system_prompt, youtube_video_url, genre
|
134 |
|
135 |
def clean_chat():
|
136 |
st.session_state.conversation = None
|
|
|
154 |
|
155 |
podcast_url_video_df = get_podcast_data(PODCAST_URL_VIDEO_PATH)
|
156 |
|
157 |
+
together, nlp, retriever, video_option,
|
158 |
video_option_joined_path, default_system_prompt, youtube_video_url, genre = get_basics_comp(EMB_MODEL, MODEL, DEFAULT_SYSTEM_PROMPT_LINK, logger,
|
159 |
podcast_url_video_df, img_size=100)
|
160 |
|