Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihan786Chistie committed Aug 4, 2024
1 parent 5b25cd4 commit 27440b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def summary_api():
try:
# Decode the URL parameter
decoded_url = urllib.parse.unquote(url)
print("Decoded URL:", decoded_url) # Log the decoded URL
video_id = decoded_url.split("v=")[1]
transcript = get_transcript(video_id)
summary = generate_summary(prompt, transcript)
Expand Down
6 changes: 1 addition & 5 deletions summarly/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ const Summarizer = () => {

chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) {
const url = tabs[0].url;
console.log('Original URL:', url); // Log the original URL

const encodedUrl = encodeURIComponent(url);
console.log('Encoded URL:', encodedUrl); // Log the encoded URL

fetch(`https://summarly-ktkk.onrender.com/summary?url=${url}`)
fetch(`https://summarly-ktkk.onrender.com/summary?url=${encodedUrl}`)
.then(response => response.json())
.then(data => {
if (data.error) {
Expand Down

0 comments on commit 27440b5

Please sign in to comment.