Spaces:
Running
Running
Rehman1603
commited on
Commit
•
9bcf001
1
Parent(s):
65c4c75
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
from fileCreator import GenerateSQDocument,GenerateParaphraseDocument,GenerateMCQSDocument
|
2 |
from main import predict_shortq,paraphrase,predict_mcq
|
3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
def QuizGenerator(data,Choice):
|
|
|
1 |
from fileCreator import GenerateSQDocument,GenerateParaphraseDocument,GenerateMCQSDocument
|
2 |
from main import predict_shortq,paraphrase,predict_mcq
|
3 |
import gradio as gr
|
4 |
+
import os
|
5 |
+
|
6 |
+
os.system('!pip install git+https://github.com/boudinfl/pke.git')
|
7 |
+
os.system('!python -m nltk.downloader universal_tagset')
|
8 |
+
os.system('!python -m spacy download en')
|
9 |
+
os.system('!wget https://github.com/explosion/sense2vec/releases/download/v1.0.0/s2v_reddit_2015_md.tar.gz')
|
10 |
+
os.system('!tar -xvf s2v_reddit_2015_md.tar.gz')
|
11 |
|
12 |
|
13 |
def QuizGenerator(data,Choice):
|