Docfile commited on
Commit
7a7bc1a
·
verified ·
1 Parent(s): 3ea5812

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ model = genai.GenerativeModel(
29
  def home():
30
  return render_template('index.html')
31
 
32
- @app.route('/generate', methods=['POST'])
33
  def generate():
34
  if 'image' not in request.files:
35
  return jsonify({'error': 'No image uploaded'}), 400
 
29
  def home():
30
  return render_template('index.html')
31
 
32
+ @app.route('/generate', methods=['POST','GET'])
33
  def generate():
34
  if 'image' not in request.files:
35
  return jsonify({'error': 'No image uploaded'}), 400