Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from chitra.serve import create_api
|
|
15 |
from transformers import pipeline
|
16 |
stemmer = LancasterStemmer()
|
17 |
|
18 |
-
classifier = pipeline("
|
19 |
with open("intents.json") as file:
|
20 |
data = json.load(file)
|
21 |
|
@@ -123,8 +123,9 @@ height: 70vh !important;
|
|
123 |
|
124 |
"""
|
125 |
|
126 |
-
cr_api = create_api(
|
127 |
cr_api.run()
|
|
|
128 |
demo = gr.Interface(
|
129 |
chat,
|
130 |
[gr.Textbox(lines=1, label="Message"), "state"],
|
|
|
15 |
from transformers import pipeline
|
16 |
stemmer = LancasterStemmer()
|
17 |
|
18 |
+
# classifier = pipeline("document-question-answering")
|
19 |
with open("intents.json") as file:
|
20 |
data = json.load(file)
|
21 |
|
|
|
123 |
|
124 |
"""
|
125 |
|
126 |
+
cr_api = create_api(model,run=False,api_type="text-classification")
|
127 |
cr_api.run()
|
128 |
+
|
129 |
demo = gr.Interface(
|
130 |
chat,
|
131 |
[gr.Textbox(lines=1, label="Message"), "state"],
|