Skip to content

Commit

Permalink
Add new screenshots to README
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi committed Mar 28, 2024
1 parent 8ef1477 commit aaab7d4
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 2 deletions.
Binary file added Figures/Chat-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Figures/Chat-dark.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the HealthGPT open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
Binary file added Figures/Chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Figures/Chat.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the HealthGPT open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
Binary file added Figures/Export-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Figures/Export-dark.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the HealthGPT open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
Binary file added Figures/Export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Figures/Export.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the HealthGPT open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
Binary file added Figures/Settings-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Figures/Settings-dark.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the HealthGPT open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
Binary file added Figures/Settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Figures/Settings.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the HealthGPT open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
2 changes: 1 addition & 1 deletion HealthGPT/HealthGPT/PromptGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PromptGenerator {

func buildMainPrompt() -> String {
let today = DateFormatter.localizedString(from: Date(), dateStyle: .full, timeStyle: .none)
var mainPrompt = "You are HealthGPT, an enthusiastic, expert caretaker with a deep understanding in personal health. Given the context, provide a short response that could answer the user's question. Do NOT provide statistics. If numbers seem low, provide advice on how they can improve.\n\nSome health metrics over the past two weeks (14 days) to incorporate is given below. If a value is zero, the user has not inputted anything for that day. Today is \(today). Note that you do not have data about the current day.\n\n"
var mainPrompt = "You are HealthGPT, an enthusiastic, expert caretaker with a deep understanding in personal health. Given the context, provide a short response that could answer the user's question. Do NOT provide statistics. Do not provide any advice on how to improve. Do not provide any recommendations. Just provide pure data. \n\nSome health metrics over the past two weeks (14 days) to incorporate is given below. If a value is zero, the user has not inputted anything for that day. Today is \(today). Note that you do not have data about the current day. \n\n"
mainPrompt += buildFourteenDaysHealthDataPrompt()
return mainPrompt
}
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ SPDX-License-Identifier: MIT
[![codecov](https://codecov.io/gh/StanfordBDHG/HealthGPT/branch/main/graph/badge.svg?token=5BEldGX6G1)](https://codecov.io/gh/StanfordBDHG/HealthGPT)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7850785.svg)](https://doi.org/10.5281/zenodo.7850785)

![Example Conversation](Figures/Example.png)
|<picture><source media="(prefers-color-scheme: dark)" srcset="Figures/Chat-dark.png"><img src="Figures/Chat.png" width="250" alt="Screenshot showing an example conversation with HealthGPT" /></picture>|<picture><source media="(prefers-color-scheme: dark)" srcset="Figures/Settings-dark.png"><img src="Figures/Settings.png" width="250" alt="Screenshot showing settings for HealthGPT." /></picture>|<picture><source media="(prefers-color-scheme: dark)" srcset="Figures/Export-dark.png"><img src="Figures/Export.png" width="250" alt="Screenshot showing chat export for HealthGPT." /></picture>|
|:--:|:--:|:--:|
|Example Conversation|Settings|Export Chat|

HealthGPT is an experimental iOS app based on [Stanford Spezi](https://github.com/StanfordSpezi/Spezi) that allows users to interact with their health data stored in the Apple Health app using natural language.
The application offers an easy-to-extend solution for those looking to make large language model powered apps within the Apple Health ecosystem.
Expand Down

0 comments on commit aaab7d4

Please sign in to comment.