Skip to content

Commit

Permalink
Merge pull request #50 from michaelthwan/pre-release
Browse files Browse the repository at this point in the history
footnote. Fix a config override bug
  • Loading branch information
michaelthwan committed Mar 5, 2023
2 parents edeed82 + e20ec69 commit ad7c9a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchGPTService.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def overide_config_by_query_string(self, ui_overriden_config):
if ui_overriden_config is None:
return
for key, value in ui_overriden_config.items():
if value is not None:
if value is not None and value != '':
# query_string is flattened (one level) while config.yaml is nested (two+ levels)
# Any better way to handle this?
if key == 'bing_search_subscription_key':
Expand Down
12 changes: 12 additions & 0 deletions src/website/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
</nav>
<div class="container">{% block content %} {% endblock %}</div>

<footer class="bg-light p-3">
<div class="container text-center">
<div class="row">
<div class="col-lg-12">
<p class="text-muted small mb-0">SearchGPT 20230305 Version (
<a href="https://github.com/michaelthwan/searchGPT">Github</a>
). Your feedback will help us to improve</p>
</div>
</div>
</div>
</footer>

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
Expand Down
1 change: 1 addition & 0 deletions src/website/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,5 @@ <h4 class="mb-1" style="font-family: 'Playfair Display', Georgia">{{item['title'
<hr>
</div>


{% endblock %}

0 comments on commit ad7c9a2

Please sign in to comment.