Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
import os
|
2 |
import subprocess
|
|
|
3 |
|
4 |
# Check if the question_generation directory exists; if not, clone the repository
|
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
|
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
+
import sys
|
4 |
|
5 |
# Check if the question_generation directory exists; if not, clone the repository
|
6 |
if not os.path.exists("question_generation"):
|
7 |
subprocess.call(["git", "clone", "https://github.com/patil-suraj/question_generation.git"])
|
8 |
|
9 |
+
|
10 |
+
# Assuming 'question_generation' is the folder where pipelines.py is located
|
11 |
+
sys.path.append(os.path.join(os.path.dirname(__file__), 'question_generation'))
|
12 |
+
|
13 |
+
from pipelines import pipeline
|
14 |
# Continue with the rest of your imports and app logic
|
15 |
import whisper
|
16 |
import torch
|