Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -261,7 +261,7 @@ def handle_post_request():
|
|
261 |
return jsonify({"error": "No JSON data provided"}), 400
|
262 |
|
263 |
message = data.get("inputs", "No message provided.")
|
264 |
-
model_id = data.get("model_id", "
|
265 |
|
266 |
print(f"Processing request with model_id: {model_id}")
|
267 |
model_response = generate_response(message, model_id)
|
|
|
261 |
return jsonify({"error": "No JSON data provided"}), 400
|
262 |
|
263 |
message = data.get("inputs", "No message provided.")
|
264 |
+
model_id = data.get("model_id", "openai-community/gpt2-large")
|
265 |
|
266 |
print(f"Processing request with model_id: {model_id}")
|
267 |
model_response = generate_response(message, model_id)
|