Spaces:
Runtime error
Runtime error
deepaksarika01
commited on
Commit
•
2415a29
1
Parent(s):
008adb4
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from model import lamini, qa_template
|
2 |
+
from utils import getSubsText
|
3 |
+
|
4 |
+
VID_ID="dWqNgzZwVJQ"
|
5 |
+
|
6 |
+
llm_loader = lamini()
|
7 |
+
llm = llm_loader.load_model()
|
8 |
+
subs = getSubsText(VID_ID)
|
9 |
+
qa = qa_template(llm)
|
10 |
+
_ = qa.load(subs)
|
11 |
+
|
12 |
+
qa.start_gradio(title="TEST")
|