Skip to content

Commit

Permalink
Drillie V1.3 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
raaasin committed Oct 5, 2023
1 parent 60da0f4 commit d4431f5
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 713 deletions.
5 changes: 1 addition & 4 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from flask import Flask, render_template, request, jsonify
"""
from models.roberta import pipe
from models.bart import classifier
from models.pGPT import tokenizer,generate_next,to_var,personas,flatten
"""

dialog_hx=[]
app = Flask(__name__)
Expand All @@ -19,7 +17,6 @@ def ask():
if request.method == "POST":
question = request.form["question"]
chat_history.append(("User", question))
"""
sequence_to_classify = question
candidate_labels = ['question about mining', 'statement']
a=classifier(sequence_to_classify, candidate_labels)
Expand All @@ -44,7 +41,7 @@ def ask():
return jsonify({"answer": answer})
"""
chat_history.append(("Chatbot","Hello i am chat bot hehe"))
return jsonify({"answer": "Hello i am chat bot hehe"})
return jsonify({"answer": "Hello i am chat bot hehe"})"""


if __name__ == "__main__":
Expand Down
289 changes: 0 additions & 289 deletions demo.html

This file was deleted.

25 changes: 0 additions & 25 deletions global.css

This file was deleted.

Loading

0 comments on commit d4431f5

Please sign in to comment.