Update chat_app.py
Browse files- chat_app.py +5 -2
chat_app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
import random
|
| 3 |
import time
|
| 4 |
|
|
@@ -30,8 +31,10 @@ def respond(message, chat_history, chat_history_slider):
|
|
| 30 |
|
| 31 |
def launch_chat_app():
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
submit_button = gr.Button("Submit")
|
| 36 |
chat_history_slider = gr.Slider(minimum=1, maximum=10, value=5, label="Chat History Length")
|
| 37 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from styles import get_chat_interface_style
|
| 3 |
import random
|
| 4 |
import time
|
| 5 |
|
|
|
|
| 31 |
|
| 32 |
def launch_chat_app():
|
| 33 |
with gr.Blocks() as demo:
|
| 34 |
+
chat_interface_style = get_chat_interface_style()
|
| 35 |
+
|
| 36 |
+
chatbot = gr.Chatbot(style=chat_interface_style["Chatbox"])
|
| 37 |
+
msg = gr.Textbox("Write your input here", style=chat_interface_style["Textbox"])
|
| 38 |
submit_button = gr.Button("Submit")
|
| 39 |
chat_history_slider = gr.Slider(minimum=1, maximum=10, value=5, label="Chat History Length")
|
| 40 |
|