forked from huggingface/chat-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
405 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Deploy to production | ||
on: | ||
release: | ||
types: [released] | ||
|
||
# to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync-to-hub: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check large files | ||
uses: ActionsDesk/[email protected] | ||
with: | ||
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- name: Push to hub | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
run: git push https://nsarrazin:[email protected]/spaces/huggingchat/chat-ui main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Deploy to staging environment | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
# to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync-to-hub: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check large files | ||
uses: ActionsDesk/[email protected] | ||
with: | ||
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- name: Push to hub | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
run: git push https://nsarrazin:[email protected]/spaces/huggingchat/chat-ui-staging main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
## Privacy | ||
|
||
> Last updated: July 23, 2023 | ||
> Last updated: October 4, 2023 | ||
Users of HuggingChat are authenticated through their HF user account. | ||
|
||
By default, your conversations may be shared with the respective models' authors (e.g. if you're chatting with the Open Assistant model, to <a target="_blank" href="https://open-assistant.io/dashboard">Open Assistant</a>) to improve their training data and model over time. Model authors are the custodians of the data collected by their model, even if it's hosted on our platform. | ||
By default, your conversations may be shared with the respective models' authors to improve their training data and model over time. Model authors are the custodians of the data collected by their model, even if it's hosted on our platform. | ||
|
||
If you disable data sharing in your settings, your conversations will not be used for any downstream usage (including for research or model training purposes), and they will only be stored to let you access past conversations. You can click on the Delete icon to delete any past conversation at any moment. | ||
|
||
🗓 Please also consult huggingface.co's main privacy policy at https://huggingface.co/privacy. To exercise any of your legal privacy rights, please send an email to [email protected]. | ||
🗓 Please also consult huggingface.co's main privacy policy at <https://huggingface.co/privacy>. To exercise any of your legal privacy rights, please send an email to <[email protected]>. | ||
|
||
## About available LLMs | ||
|
||
The goal of this app is to showcase that it is now (May 2023) possible to build an open source alternative to ChatGPT. 💪 | ||
The goal of this app is to showcase that it is now possible to build an open source alternative to ChatGPT. 💪 | ||
|
||
For now, it's running both OpenAssistant's [latest LLaMA based model](https://huggingface.co/OpenAssistant/oasst-sft-6-llama-30b-xor) (which is one of the current best open source chat models) as well as [Meta's newer Llama 2](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf), but the plan in the longer-term is to expose all good-quality chat models from the Hub. | ||
For now (October 2023), it's running: | ||
|
||
We are not affiliated with Open Assistant nor Meta AI, but if you want to contribute to the training data for the next generation of open models, please consider contributing to https://open-assistant.io/ or https://ai.meta.com/llama/ ❤️ | ||
- [Llama 2 70B](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) | ||
- [CodeLlama 35B](https://about.fb.com/news/2023/08/code-llama-ai-for-coding/) | ||
- [Falcon 180B](https://www.tii.ae/news/technology-innovation-institute-introduces-worlds-most-powerful-open-llm-falcon-180b) | ||
- [Mistral 7B](https://mistral.ai/news/announcing-mistral-7b/) | ||
|
||
## Technical details | ||
|
||
|
@@ -28,11 +31,6 @@ The inference backend is running the optimized [text-generation-inference](https | |
|
||
It is therefore possible to deploy a copy of this app to a Space and customize it (swap model, add some UI elements, or store user messages according to your own Terms and conditions). You can also 1-click deploy your own instance using the [Chat UI Spaces Docker template](https://huggingface.co/new-space?template=huggingchat/chat-ui-template). | ||
|
||
We welcome any feedback on this app: please participate to the public discussion at https://huggingface.co/spaces/huggingchat/chat-ui/discussions | ||
We welcome any feedback on this app: please participate to the public discussion at <https://huggingface.co/spaces/huggingchat/chat-ui/discussions> | ||
|
||
<a target="_blank" href="https://huggingface.co/spaces/huggingchat/chat-ui/discussions"><img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-a-discussion-xl.svg" title="open a discussion"></a> | ||
|
||
## Coming soon | ||
|
||
- User setting to share conversations with model authors (done ✅) | ||
- LLM watermarking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script lang="ts"> | ||
import Modal from "./Modal.svelte"; | ||
import CarbonClose from "~icons/carbon/close"; | ||
import CarbonBlockchain from "~icons/carbon/blockchain"; | ||
export let preprompt: string; | ||
let isOpen = false; | ||
</script> | ||
|
||
<button | ||
type="button" | ||
class="mx-auto flex items-center gap-1.5 rounded-full border border-gray-100 bg-gray-50 px-3 py-1 text-xs text-gray-500 hover:bg-gray-100 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700" | ||
on:click={() => (isOpen = !isOpen)} | ||
on:keypress={(e) => e.key === "Enter" && (isOpen = !isOpen)} | ||
> | ||
<CarbonBlockchain class="text-xxs" /> Using Custom System Prompt | ||
</button> | ||
|
||
{#if isOpen} | ||
<Modal on:close={() => (isOpen = false)} width="w-full max-w-2xl"> | ||
<div class="flex w-full flex-col gap-5 p-6"> | ||
<div class="flex items-start justify-between text-xl font-semibold text-gray-800"> | ||
<h2>System Prompt</h2> | ||
<button type="button" class="group" on:click={() => (isOpen = false)}> | ||
<CarbonClose class="mt-auto text-gray-900 group-hover:text-gray-500" /> | ||
</button> | ||
</div> | ||
<textarea | ||
disabled | ||
value={preprompt} | ||
class="min-h-[420px] w-full resize-none rounded-lg border bg-gray-50 p-2.5 text-gray-600 max-sm:text-sm" | ||
/> | ||
</div> | ||
</Modal> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.