aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-08-25 23:30:44 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-08-25 23:30:44 +0530
commit8f252a19d326114d5562f38cdf7c41c6288d86d2 (patch)
treebe1fdc6fdea2dbc82c654add8094a092194ff20c
parentdb190854040e790456bbbe74ee31b6cda635127c (diff)
changed bootstrap theme to solarized
-rw-r--r--app/__init__.py2
-rw-r--r--app/templates/base.html8
-rw-r--r--app/templates/generate.html2
3 files changed, 9 insertions, 3 deletions
diff --git a/app/__init__.py b/app/__init__.py
index c018044..b4b9ea8 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -10,7 +10,7 @@ import hashlib
ssid = b'j\xa0\x1b\xd6p\xe9\xa4\\b\x12\xedD\xaeX\x8a\xf8'
try:
- output = subprocess.check_output(['sudo', 'iwgetid'])
+ output = subprocess.check_output(['iwgetid'])
if hashlib.md5(bytes(output.decode().split('"')[1],encoding="utf-8")).digest() == ssid:
DB_HOST = '192.168.1.6'
except:
diff --git a/app/templates/base.html b/app/templates/base.html
index 157b68b..5d90d74 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Curie Web</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.5.2/solar/bootstrap.min.css">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename='favicons/apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='favicons/favicon-32x32.png') }}">
@@ -38,8 +38,14 @@
<a class="nav-link" href="{{ url_for('dock_upload') }}">Dock and Report</a>
</li>
<li class="nav-item">
+ <a class="nav-link" href="{{ url_for('generate') }}">Generate</a>
+ </li>
+ <li class="nav-item">
<a class="nav-link" href="{{ url_for('status') }}">Job Status</a>
</li>
+ <li class="nav-item">
+ <a class="nav-link" href="{{url_for('pubmed')}}">Search</a>
+ </li>
</ul>
</div>
</nav>
diff --git a/app/templates/generate.html b/app/templates/generate.html
index c034bd3..45bbb3b 100644
--- a/app/templates/generate.html
+++ b/app/templates/generate.html
@@ -2,7 +2,7 @@
{% block main %}
<h1>Curie Generate</h1>
- <p>The model {{expName}} has been trained for {{epochs}} epochs using the {{optimizer}} optimization algorithm</p>
+ <p>The model {{expName}} has been trained for {{epochs}} epochs using the {{optimizer}} optimization algorithm. Option for finetuning coming soon.</p>
<form action="{{ url_for('generate') }}" method="post" enctype="multipart/form-data">
{% include 'flash_messages.html' %}
{{ form.csrf_token }}