Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
from flask import Flask, jsonify, request
|
2 |
from webscout import AsyncWEBS, WEBS
|
3 |
from webscout.LLM import LLM
|
4 |
-
from webscout
|
5 |
|
6 |
app = Flask(__name__)
|
7 |
|
8 |
# Initialize the OPENGPT instance
|
9 |
-
opengpt = OPENGPT(is_conversation=False, max_tokens=8000, timeout=30)
|
10 |
|
11 |
@app.route('/search', methods=['POST'])
|
12 |
def WEBScout2_search_search():
|
|
|
1 |
from flask import Flask, jsonify, request
|
2 |
from webscout import AsyncWEBS, WEBS
|
3 |
from webscout.LLM import LLM
|
4 |
+
from webscout import OPENGPT # Import OPENGPT
|
5 |
|
6 |
app = Flask(__name__)
|
7 |
|
8 |
# Initialize the OPENGPT instance
|
9 |
+
opengpt = AI.OPENGPT(is_conversation=False, max_tokens=8000, timeout=30)
|
10 |
|
11 |
@app.route('/search', methods=['POST'])
|
12 |
def WEBScout2_search_search():
|