Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,5 @@
|
|
1 |
-
import
|
2 |
-
|
3 |
-
import nltk
|
4 |
-
except ModuleNotFoundError:
|
5 |
-
os.system("pip3 install nltk")
|
6 |
-
try:
|
7 |
-
import transformers
|
8 |
-
except ModuleNotFoundError:
|
9 |
-
os.system("pip3 install transformers")
|
10 |
-
|
11 |
-
|
12 |
-
import nltk
|
13 |
import gradio as gr
|
14 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
15 |
|
|
|
1 |
+
import lib
|
2 |
+
import nltk, torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import gradio as gr
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|