Spaces:
Runtime error
Runtime error
Commit
·
22fd34b
1
Parent(s):
f1c7a53
Update main.py
Browse files
main.py
CHANGED
|
@@ -47,7 +47,8 @@ llm_chain = LLMChain(llm=llm, prompt=PromptTemplate.from_template(prompt_templat
|
|
| 47 |
|
| 48 |
# 定义API端点
|
| 49 |
app = Flask(__name__)
|
| 50 |
-
@app.route('/
|
|
|
|
| 51 |
#def chat():
|
| 52 |
def chat():
|
| 53 |
data = request.get_json()
|
|
|
|
| 47 |
|
| 48 |
# 定义API端点
|
| 49 |
app = Flask(__name__)
|
| 50 |
+
@app.route('/', methods=['POST'])
|
| 51 |
+
#@app.route('/api/chat', methods=['POST'])
|
| 52 |
#def chat():
|
| 53 |
def chat():
|
| 54 |
data = request.get_json()
|