YALCINKAYA commited on
Commit
3fb34ca
·
verified ·
1 Parent(s): d3914c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", "meta-llama/Llama-3.1-8B-Instruct")
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)