Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,19 @@
|
|
1 |
-
from flask import Flask, render_template, request, Response, send_file, jsonify
|
2 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import hashlib
|
4 |
from pipeline import *
|
5 |
import csv
|
|
|
|
|
1 |
import os
|
2 |
+
|
3 |
+
os.system("python -m pip install transformers")
|
4 |
+
os.system("python -m pip install spacy==3.5.4")
|
5 |
+
os.system("python -m pip install spacy-alignments==0.9.1")
|
6 |
+
os.system("python -m pip install spacy-legacy==3.0.12")
|
7 |
+
os.system("python -m pip install spacy-loggers==1.0.3")
|
8 |
+
os.system("python -m pip install torch")
|
9 |
+
os.system("python -m pip install seaborn==0.11.2")
|
10 |
+
os.system("python -m pip install gradio==3.16.1")
|
11 |
+
os.system("python -m pip install typer==0.4.1")
|
12 |
+
os.system("python -m pip install pydantic==1.9.2")
|
13 |
+
os.system("python -m pip install matplotlib==3.4.3")
|
14 |
+
os.system("python -m pip install Flask")
|
15 |
+
|
16 |
+
from flask import Flask, render_template, request, Response, send_file, jsonify
|
17 |
import hashlib
|
18 |
from pipeline import *
|
19 |
import csv
|