Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -101,12 +101,12 @@ def abstractiveSummaryWithPegasus(words):
|
|
101 |
|
102 |
# Main logic of the program
|
103 |
def process(uri, mode):
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
|
111 |
|
112 |
import gradio as gr
|
|
|
101 |
|
102 |
# Main logic of the program
|
103 |
def process(uri, mode):
|
104 |
+
if mode == "Youtube":
|
105 |
+
return YTVideoToText(uri)
|
106 |
+
elif mode == "Blog":
|
107 |
+
return postSummaryWithBart(uri)
|
108 |
+
else:
|
109 |
+
raise ValueError("Invalid mode")
|
110 |
|
111 |
|
112 |
import gradio as gr
|