Update main.py
Browse files
main.py
CHANGED
@@ -51,8 +51,8 @@ def recommend():
|
|
51 |
"""
|
52 |
formatted_prompt = format_prompt(prompt)
|
53 |
|
54 |
-
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=False, details=
|
55 |
-
return jsonify({"ans": stream
|
56 |
|
57 |
@app.route('/get_mentor', methods=['POST'])
|
58 |
def mentor():
|
@@ -93,7 +93,7 @@ def mentor():
|
|
93 |
"""
|
94 |
formatted_prompt = format_prompt(prompt)
|
95 |
|
96 |
-
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=False, details=
|
97 |
return jsonify({"ans": stream})
|
98 |
|
99 |
if __name__ == '__main__':
|
|
|
51 |
"""
|
52 |
formatted_prompt = format_prompt(prompt)
|
53 |
|
54 |
+
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=False, details=False, return_full_text=True)
|
55 |
+
return jsonify({"ans": stream})
|
56 |
|
57 |
@app.route('/get_mentor', methods=['POST'])
|
58 |
def mentor():
|
|
|
93 |
"""
|
94 |
formatted_prompt = format_prompt(prompt)
|
95 |
|
96 |
+
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=False, details=False, return_full_text=True)
|
97 |
return jsonify({"ans": stream})
|
98 |
|
99 |
if __name__ == '__main__':
|