Spaces:
Running
Running
app update
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def play_simulation_selection(selection: str) -> str:
|
|
| 46 |
if custom_simulation_store["video_id"] and custom_simulation_store["chat_data"]:
|
| 47 |
return load_template_with_data(custom_simulation_store["video_id"], custom_simulation_store["chat_data"])
|
| 48 |
else:
|
| 49 |
-
return "<div style='color:#ff0055; text-align:center; padding:50px; font-family:sans-serif;'>No custom simulation has been generated yet. Please
|
| 50 |
return ""
|
| 51 |
|
| 52 |
def handle_generation(yt_url: str, pdf_file, doc_text: str, srt_text: str, hf_token: str):
|
|
|
|
| 46 |
if custom_simulation_store["video_id"] and custom_simulation_store["chat_data"]:
|
| 47 |
return load_template_with_data(custom_simulation_store["video_id"], custom_simulation_store["chat_data"])
|
| 48 |
else:
|
| 49 |
+
return "<div style='color:#ff0055; text-align:center; padding:50px; font-family:sans-serif;'>No custom simulation has been generated yet. Please choose 'Configure Custom Solution'.</div>"
|
| 50 |
return ""
|
| 51 |
|
| 52 |
def handle_generation(yt_url: str, pdf_file, doc_text: str, srt_text: str, hf_token: str):
|