Spaces:
Paused
Paused
chitkenkhoi
commited on
Commit
•
c640f15
1
Parent(s):
1c9f5b4
fix bug
Browse files- Dockerfile +1 -0
- app.py +4 -0
Dockerfile
CHANGED
@@ -29,4 +29,5 @@ RUN chown -R user:user /code
|
|
29 |
USER user
|
30 |
|
31 |
# Run the application
|
|
|
32 |
CMD ["python", "app.py"]
|
|
|
29 |
USER user
|
30 |
|
31 |
# Run the application
|
32 |
+
EXPOSE 7860
|
33 |
CMD ["python", "app.py"]
|
app.py
CHANGED
@@ -213,6 +213,10 @@ def ask_with_history_v3(query: str, conversation_id: str, isFirst):
|
|
213 |
store_conversation(conversation_id, query, response.text)
|
214 |
|
215 |
# API endpoints
|
|
|
|
|
|
|
|
|
216 |
@app.route('/ping', methods=['GET'])
|
217 |
def ping():
|
218 |
return jsonify("Service is running")
|
|
|
213 |
store_conversation(conversation_id, query, response.text)
|
214 |
|
215 |
# API endpoints
|
216 |
+
@app.route('/',methods=['GET'])
|
217 |
+
def home():
|
218 |
+
return "Hello World" # or your actual response
|
219 |
+
|
220 |
@app.route('/ping', methods=['GET'])
|
221 |
def ping():
|
222 |
return jsonify("Service is running")
|