ravithejads commited on
Commit
5e5262d
·
1 Parent(s): c044854

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def createindex(url, openaikey):
76
  # Create index
77
  index = GPTListIndex([Document(transcript)], chunk_size_limit=2500)
78
 
79
- index_filename = filename[:-4] + ".json"
80
  index.save_to_disk(index_filename)
81
 
82
  return "Video processed. Now you can start querying."
 
76
  # Create index
77
  index = GPTListIndex([Document(transcript)], chunk_size_limit=2500)
78
 
79
+ index_filename = "index.json"
80
  index.save_to_disk(index_filename)
81
 
82
  return "Video processed. Now you can start querying."