Spaces:
Runtime error
Runtime error
Commit
β’
18ed13a
1
Parent(s):
6127774
Update app.py
Browse files
app.py
CHANGED
@@ -811,26 +811,26 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
811 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
|
812 |
show_label=False, lines=1, type='password')
|
813 |
|
814 |
-
with gr.Row():
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
|
820 |
-
|
821 |
-
|
822 |
# tmp_file_url = "/file=" + tmp_file.value['name']
|
823 |
-
|
824 |
-
|
825 |
|
826 |
# my_aud_file = gr.File(label="Audio file", type="file", visible=True)
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
|
832 |
-
|
833 |
-
|
834 |
|
835 |
|
836 |
embeddings_text_box = gr.Textbox(value=ARC, visible=False, label="Enter text for embeddings and hit Create:",
|
@@ -1064,17 +1064,13 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
1064 |
# outputs=[docsearch_state])
|
1065 |
|
1066 |
|
1067 |
-
|
1068 |
-
gr.HTML("""
|
1069 |
-
<p>This is a proof of concept chatbot for Cover Whale.
|
1070 |
-
</p>""")
|
1071 |
-
|
1072 |
|
1073 |
-
gr.HTML("""<center>
|
|
|
1074 |
Powered by <a href='https://github.com/hwchase17/langchain'>LangChain π¦οΈπ</a>
|
1075 |
</center>""")
|
1076 |
|
1077 |
-
gr.HTML('''<br><
|
1078 |
|
1079 |
message.submit(chat, inputs=[openai_api_key_textbox, message, history_state, chain_state, trace_chain_state,
|
1080 |
speak_text_state, talking_head_state, monologue_state,
|
|
|
811 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
|
812 |
show_label=False, lines=1, type='password')
|
813 |
|
814 |
+
#with gr.Row():
|
815 |
+
# with gr.Column(scale=1, min_width=TALKING_HEAD_WIDTH, visible=True):
|
816 |
+
# speak_text_cb = gr.Checkbox(label="Enable speech", value=False)
|
817 |
+
# speak_text_cb.change(update_foo, inputs=[speak_text_cb, speak_text_state],
|
818 |
+
# outputs=[speak_text_state])
|
819 |
|
820 |
+
# my_file = gr.File(label="Upload a file", type="file", visible=False)
|
821 |
+
# tmp_file = gr.File(LOOPING_TALKING_HEAD, visible=False)
|
822 |
# tmp_file_url = "/file=" + tmp_file.value['name']
|
823 |
+
# htm_video = create_html_video(LOOPING_TALKING_HEAD, TALKING_HEAD_WIDTH)
|
824 |
+
# video_html = gr.HTML(htm_video)
|
825 |
|
826 |
# my_aud_file = gr.File(label="Audio file", type="file", visible=True)
|
827 |
+
# tmp_aud_file = gr.File("audios/tempfile.mp3", visible=False)
|
828 |
+
# tmp_aud_file_url = "/file=" + tmp_aud_file.value['name']
|
829 |
+
# htm_audio = f'<audio><source src={tmp_aud_file_url} type="audio/mp3"></audio>'
|
830 |
+
# audio_html = gr.HTML(htm_audio)
|
831 |
|
832 |
+
# with gr.Column(scale=7):
|
833 |
+
# chatbot = gr.Chatbot()
|
834 |
|
835 |
|
836 |
embeddings_text_box = gr.Textbox(value=ARC, visible=False, label="Enter text for embeddings and hit Create:",
|
|
|
1064 |
# outputs=[docsearch_state])
|
1065 |
|
1066 |
|
|
|
|
|
|
|
|
|
|
|
1067 |
|
1068 |
+
gr.HTML("""<center> <p>This is a proof of concept chatbot for Cover Whale.
|
1069 |
+
</p><br>
|
1070 |
Powered by <a href='https://github.com/hwchase17/langchain'>LangChain π¦οΈπ</a>
|
1071 |
</center>""")
|
1072 |
|
1073 |
+
gr.HTML('''<br><center><img src="https://www.coverwhale.com/wp-content/uploads/2022/06/coverwhale_logo_purple.2560760b-768x136.png"></center>''')
|
1074 |
|
1075 |
message.submit(chat, inputs=[openai_api_key_textbox, message, history_state, chain_state, trace_chain_state,
|
1076 |
speak_text_state, talking_head_state, monologue_state,
|