Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from gradio.components import Textbox,
|
| 3 |
|
| 4 |
load_dotenv()
|
| 5 |
|
|
@@ -36,12 +36,12 @@ iface = gr.Interface(
|
|
| 36 |
fn=respond,
|
| 37 |
inputs=[
|
| 38 |
Textbox(label="Prompt"),
|
| 39 |
-
|
| 40 |
Textbox(label="System message", lines=2, default="A conversation between a user and an AI assistant. The assistant gives helpful and honest answers.")
|
| 41 |
],
|
| 42 |
outputs=[
|
| 43 |
Textbox(label="Prompt"),
|
| 44 |
-
|
| 45 |
Textbox(label="System message")
|
| 46 |
],
|
| 47 |
server_name="0.0.0.0",
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio.components import Textbox, Chat
|
| 3 |
|
| 4 |
load_dotenv()
|
| 5 |
|
|
|
|
| 36 |
fn=respond,
|
| 37 |
inputs=[
|
| 38 |
Textbox(label="Prompt"),
|
| 39 |
+
Chat(label="Chat History", height=240),
|
| 40 |
Textbox(label="System message", lines=2, default="A conversation between a user and an AI assistant. The assistant gives helpful and honest answers.")
|
| 41 |
],
|
| 42 |
outputs=[
|
| 43 |
Textbox(label="Prompt"),
|
| 44 |
+
Chat(label="Chat History", height=240),
|
| 45 |
Textbox(label="System message")
|
| 46 |
],
|
| 47 |
server_name="0.0.0.0",
|