Praveen0309 commited on
Commit
1c1dfab
·
1 Parent(s): e2c08bf
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -116,7 +116,7 @@ def facebook_response(url, input_sentence):
116
 
117
 
118
  image_cache = {}
119
- @app.route('/upload/', methods=['POST'])
120
  def upload_file():
121
  try:
122
  file = request.files['file']
@@ -133,9 +133,7 @@ def upload_file():
133
  return jsonify({'status': 'error', 'message': str(e)})
134
 
135
 
136
- @app.route("/")
137
- def home():
138
- return render_template("index.html")
139
 
140
  @app.route("/get/")
141
  def get_bot_response():
@@ -151,6 +149,11 @@ def get_bot_response():
151
  return "Please upload an image to continue"
152
  except Exception as e:
153
  return f"Error: {str(e)}"
 
 
 
 
 
154
 
155
 
156
  # Run the Flask app
 
116
 
117
 
118
  image_cache = {}
119
+ @app.route('/upload', methods=['POST'])
120
  def upload_file():
121
  try:
122
  file = request.files['file']
 
133
  return jsonify({'status': 'error', 'message': str(e)})
134
 
135
 
136
+
 
 
137
 
138
  @app.route("/get/")
139
  def get_bot_response():
 
149
  return "Please upload an image to continue"
150
  except Exception as e:
151
  return f"Error: {str(e)}"
152
+
153
+
154
+ @app.route("/")
155
+ def home():
156
+ return render_template("index.html")
157
 
158
 
159
  # Run the Flask app