Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,12 +5,6 @@ import subprocess
|
|
| 5 |
if not os.path.exists("question_generation"):
|
| 6 |
subprocess.call(["git", "clone", "https://github.com/patil-suraj/question_generation.git"])
|
| 7 |
|
| 8 |
-
# Download necessary files using wget (if needed)
|
| 9 |
-
import wget
|
| 10 |
-
|
| 11 |
-
!wget --no-check-certificate -O video-example.mp4 "https://drive.google.com/uc?export=download&id=1o6hO2tYTxgudQSwhSD1E0wVwZ_N6qR1l"
|
| 12 |
-
!wget --no-check-certificate -O audio-example.mp3 "https://drive.google.com/uc?export=download&id=1BcE0aITKjABWcN6JFs5lS1GFUjCQU_7Y"
|
| 13 |
-
|
| 14 |
# Continue with the rest of your imports and app logic
|
| 15 |
import whisper
|
| 16 |
import torch
|
|
@@ -214,7 +208,7 @@ with gr.Blocks() as demo:
|
|
| 214 |
examples = [
|
| 215 |
["Audio Upload", "audio-example.mp3", None, None, "English", True, True, 5],
|
| 216 |
["Video Upload", None, None, "video-example.mp4", "Arabic", True, False, 3],
|
| 217 |
-
["YouTube Link", None, "https://www.youtube.com/watch?v=J4RqCSD--Dg", None, "English", False, True, 2]
|
| 218 |
]
|
| 219 |
gr.Examples(
|
| 220 |
examples=examples,
|
|
|
|
| 5 |
if not os.path.exists("question_generation"):
|
| 6 |
subprocess.call(["git", "clone", "https://github.com/patil-suraj/question_generation.git"])
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# Continue with the rest of your imports and app logic
|
| 9 |
import whisper
|
| 10 |
import torch
|
|
|
|
| 208 |
examples = [
|
| 209 |
["Audio Upload", "audio-example.mp3", None, None, "English", True, True, 5],
|
| 210 |
["Video Upload", None, None, "video-example.mp4", "Arabic", True, False, 3],
|
| 211 |
+
["YouTube Link", None, "https://www.youtube.com/watch?v=J4RqCSD--Dg&ab_channel=LearnFree", None, "English", False, True, 2]
|
| 212 |
]
|
| 213 |
gr.Examples(
|
| 214 |
examples=examples,
|