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