Spaces:
Runtime error
Runtime error
EC2 Default User
commited on
Commit
·
17600ff
1
Parent(s):
bc6e2db
add video show window
Browse files
app.py
CHANGED
@@ -55,6 +55,8 @@ s3 = boto3.client('s3')
|
|
55 |
transcribe = boto3.client('transcribe')
|
56 |
|
57 |
|
|
|
|
|
58 |
#memory = ConversationSummaryBufferMemory(llm=ChatOpenAI(), max_token_limit=2048)
|
59 |
memory = ConversationBufferWindowMemory(k=5)
|
60 |
conversation = ConversationChain(
|
@@ -297,7 +299,8 @@ with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:500px}") as d
|
|
297 |
with gr.Row():
|
298 |
audio_output = gr.Audio(type="filepath", label="Audio Output", elem_id="speaker", interactive=False)
|
299 |
|
300 |
-
|
|
|
301 |
|
302 |
txt.submit(predict, [txt, state], [chatbot, audio_output, state])
|
303 |
audio_input.change(process_audio, [audio_input, state], [chatbot, audio_output, state])
|
|
|
55 |
transcribe = boto3.client('transcribe')
|
56 |
|
57 |
|
58 |
+
avatar_url = "https://create-images-results.d-id.com/DefaultPresenters/Magen_f/image.jpeg"
|
59 |
+
|
60 |
#memory = ConversationSummaryBufferMemory(llm=ChatOpenAI(), max_token_limit=2048)
|
61 |
memory = ConversationBufferWindowMemory(k=5)
|
62 |
conversation = ConversationChain(
|
|
|
299 |
with gr.Row():
|
300 |
audio_output = gr.Audio(type="filepath", label="Audio Output", elem_id="speaker", interactive=False)
|
301 |
|
302 |
+
with gr.Row():
|
303 |
+
video = gr.HTML(f'<img src="{avatar_url}" width="320" height="240" alt="John Carmack">', live=False)
|
304 |
|
305 |
txt.submit(predict, [txt, state], [chatbot, audio_output, state])
|
306 |
audio_input.change(process_audio, [audio_input, state], [chatbot, audio_output, state])
|