Commit
·
fd898ae
1
Parent(s):
9bcfea3
Fixed session bug
Browse files- Dockerfile +1 -1
- app.py +3 -1
Dockerfile
CHANGED
|
@@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
-
CMD ["gunicorn", "-c", "gunicorn_config.py", "app:app"]
|
|
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
+
CMD ["gunicorn", "-c", "gunicorn_config.py", "app:app"]
|
app.py
CHANGED
|
@@ -49,6 +49,7 @@ def page_not_found(error):
|
|
| 49 |
# Route to display transformed CSV as a table
|
| 50 |
@app.route('/')
|
| 51 |
def display_transformed_csv():
|
|
|
|
| 52 |
access_token = get_secrets('GH_token')
|
| 53 |
benchmark_file_texteval = 'Miner_Benchmark.csv'
|
| 54 |
benchmark_file_agieval = 'miner_benchmark_AGIEval.csv'
|
|
@@ -95,6 +96,7 @@ def display_transformed_csv():
|
|
| 95 |
return "CSV file not found."
|
| 96 |
|
| 97 |
if __name__ == '__main__':
|
| 98 |
-
|
|
|
|
| 99 |
app.run(debug=True, host='0.0.0.0', port=7860)
|
| 100 |
|
|
|
|
| 49 |
# Route to display transformed CSV as a table
|
| 50 |
@app.route('/')
|
| 51 |
def display_transformed_csv():
|
| 52 |
+
|
| 53 |
access_token = get_secrets('GH_token')
|
| 54 |
benchmark_file_texteval = 'Miner_Benchmark.csv'
|
| 55 |
benchmark_file_agieval = 'miner_benchmark_AGIEval.csv'
|
|
|
|
| 96 |
return "CSV file not found."
|
| 97 |
|
| 98 |
if __name__ == '__main__':
|
| 99 |
+
app.secret_key = get_secrets('secret_key')
|
| 100 |
+
|
| 101 |
app.run(debug=True, host='0.0.0.0', port=7860)
|
| 102 |
|