Spaces:
Running
Running
Update chat_app_remote.py
Browse files- chat_app_remote.py +5 -8
chat_app_remote.py
CHANGED
@@ -10,13 +10,8 @@ warnings.filterwarnings("ignore")
|
|
10 |
import tempfile
|
11 |
import scipy.io.wavfile as wavfile
|
12 |
|
13 |
-
client = Client(os.environ['
|
14 |
|
15 |
-
custom_css = """
|
16 |
-
.gradio-container {
|
17 |
-
justify-content: flex-start !important;
|
18 |
-
}
|
19 |
-
"""
|
20 |
|
21 |
def create_frontend_demo():
|
22 |
def chat_function(message, history, session_id):
|
@@ -36,7 +31,7 @@ def create_frontend_demo():
|
|
36 |
# For audio, we need to return the path string directly
|
37 |
return "", new_history, audio_path, session_id, display_text
|
38 |
|
39 |
-
with gr.Blocks(
|
40 |
session_id_state = gr.State("")
|
41 |
|
42 |
with gr.Tabs() as tabs:
|
@@ -91,11 +86,13 @@ def create_frontend_demo():
|
|
91 |
|
92 |
The majority of the latency depends on the HF's inference api.
|
93 |
LLM is not fine-tuned or optimized at all. the current state of conversational off-the-shelf japanese LLM seem to be less than remarkable, please beware of that.
|
94 |
-
|
95 |
1. Enter your Session ID above or leave blank for a new one
|
96 |
2. Click 'Set Session ID' to confirm
|
97 |
3. Use 'Clear Conversation' to reset the chat
|
98 |
4. Your conversation history is saved based on your Session ID
|
|
|
|
|
99 |
|
100 |
""")
|
101 |
|
|
|
10 |
import tempfile
|
11 |
import scipy.io.wavfile as wavfile
|
12 |
|
13 |
+
client = Client(os.environ['src'])
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
def create_frontend_demo():
|
17 |
def chat_function(message, history, session_id):
|
|
|
31 |
# For audio, we need to return the path string directly
|
32 |
return "", new_history, audio_path, session_id, display_text
|
33 |
|
34 |
+
with gr.Blocks(theme="Respair/[email protected]") as demo:
|
35 |
session_id_state = gr.State("")
|
36 |
|
37 |
with gr.Tabs() as tabs:
|
|
|
86 |
|
87 |
The majority of the latency depends on the HF's inference api.
|
88 |
LLM is not fine-tuned or optimized at all. the current state of conversational off-the-shelf japanese LLM seem to be less than remarkable, please beware of that.
|
89 |
+
|
90 |
1. Enter your Session ID above or leave blank for a new one
|
91 |
2. Click 'Set Session ID' to confirm
|
92 |
3. Use 'Clear Conversation' to reset the chat
|
93 |
4. Your conversation history is saved based on your Session ID
|
94 |
+
|
95 |
+
I'll try to keep this demo up for a while.
|
96 |
|
97 |
""")
|
98 |
|