Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -131,7 +131,7 @@ def handle_query(query):
|
|
131 |
current_chat_history.append((query, response))
|
132 |
return response
|
133 |
|
134 |
-
app = Flask(
|
135 |
|
136 |
# Data ingestion
|
137 |
data_ingestion_from_directory()
|
@@ -163,5 +163,5 @@ def chat():
|
|
163 |
except Exception as e:
|
164 |
return jsonify({"response": f"An error occurred: {str(e)}"})
|
165 |
|
166 |
-
if
|
167 |
app.run(debug=True)
|
|
|
131 |
current_chat_history.append((query, response))
|
132 |
return response
|
133 |
|
134 |
+
app = Flask(__name__)
|
135 |
|
136 |
# Data ingestion
|
137 |
data_ingestion_from_directory()
|
|
|
163 |
except Exception as e:
|
164 |
return jsonify({"response": f"An error occurred: {str(e)}"})
|
165 |
|
166 |
+
if __name__ == '__main__':
|
167 |
app.run(debug=True)
|