Jaward commited on
Commit
df266d3
·
verified ·
1 Parent(s): 1520236

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -407,7 +407,8 @@ def create_zip_of_files(file_paths):
407
  # Access local files
408
  def get_gradio_file_url(local_path):
409
  relative_path = os.path.relpath(local_path, os.getcwd())
410
- return f"/gradio_api/file={relative_path}"
 
411
 
412
  # Async generate lecture materials and audio
413
  async def on_generate(api_service, api_key, serpapi_key, title, lecture_content_description, lecture_type, lecture_style, speaker_audio, num_slides):
 
407
  # Access local files
408
  def get_gradio_file_url(local_path):
409
  relative_path = os.path.relpath(local_path, os.getcwd())
410
+ final_path = f"/gradio_api/file={relative_path}"
411
+ return final_path
412
 
413
  # Async generate lecture materials and audio
414
  async def on_generate(api_service, api_key, serpapi_key, title, lecture_content_description, lecture_type, lecture_style, speaker_audio, num_slides):