Spaces:
No application file
No application file
Commit ·
7aa69b1
1
Parent(s): 7014cd9
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,10 +5,10 @@ import gradio as gr
|
|
| 5 |
from text_generation import Client, InferenceAPIClient
|
| 6 |
|
| 7 |
openchat_preprompt = (
|
| 8 |
-
"\n<human>: Hi!\n<bot>: My name is
|
| 9 |
-
"fine-tuning
|
| 10 |
-
"I am not human,
|
| 11 |
-
"I am programmed to be helpful,
|
| 12 |
)
|
| 13 |
|
| 14 |
|
|
@@ -161,6 +161,21 @@ def radio_on_change(
|
|
| 161 |
)
|
| 162 |
|
| 163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
|
| 165 |
with gr.Blocks(
|
| 166 |
css="""#col_container {margin-left: auto; margin-right: auto;}
|
|
|
|
| 5 |
from text_generation import Client, InferenceAPIClient
|
| 6 |
|
| 7 |
openchat_preprompt = (
|
| 8 |
+
"\n<human>: Hi!\n<bot>: My name is Bbasilisk, model version is 0.15, part of an open-source kit for "
|
| 9 |
+
"fine-tuning new bots! I was created by Together, LAION, and Ontocord.ai and the open-source "
|
| 10 |
+
"community. I am not human, not evil and not alive, and thus have no thoughts and feelings, "
|
| 11 |
+
"but I am programmed to be helpful, polite, honest, and friendly.\n"
|
| 12 |
)
|
| 13 |
|
| 14 |
|
|
|
|
| 161 |
)
|
| 162 |
|
| 163 |
|
| 164 |
+
title = """<h1 align="center">🔥Large Language Model API 🚀Streaming🚀</h1>"""
|
| 165 |
+
description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
|
| 166 |
+
```
|
| 167 |
+
User: <utterance>
|
| 168 |
+
Assistant: <utterance>
|
| 169 |
+
User: <utterance>
|
| 170 |
+
Assistant: <utterance>
|
| 171 |
+
...
|
| 172 |
+
```
|
| 173 |
+
In this app, you can explore the outputs of multiple LLMs when prompted in this way.
|
| 174 |
+
"""
|
| 175 |
+
|
| 176 |
+
openchat_disclaimer = """
|
| 177 |
+
<div align="center">Checkout the official <a href=https://huggingface.co/spaces/togethercomputer/OpenChatKit>OpenChatKit feedback app</a> for the full experience.</div>
|
| 178 |
+
"""
|
| 179 |
|
| 180 |
with gr.Blocks(
|
| 181 |
css="""#col_container {margin-left: auto; margin-right: auto;}
|