someshb07 commited on
Commit
ac9ff43
·
verified ·
1 Parent(s): a2ce451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -55,5 +55,12 @@ def get_youtube_transcript(link):
55
  except Exception as e:
56
  return f"An error has occured: {e}"
57
 
58
-
 
 
 
 
 
 
 
59
 
 
55
  except Exception as e:
56
  return f"An error has occured: {e}"
57
 
58
+
59
+
60
+ demo = gr.Interface(fn=get_youtube_transcript,
61
+ inputs=[gr.Textbox(label="Input youtube url to generate the summary of video", lines=6)],
62
+ outputs=[gr.Textbox(label="Summary of youtube video")],
63
+ title='Generate Video Summary',
64
+ description='This is a project to generate the summary of a video')
65
+ demo.launch(share='True')
66