Spaces:
Sleeping
Sleeping
chore: hide buttons on the image comp and remove the query string from s3 url
Browse files
app.py
CHANGED
@@ -3273,14 +3273,14 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
3273 |
💤 我還在成長,體力有限,每一次學習只能回答十個問題,請讓我休息一下再問問題喔~
|
3274 |
"""
|
3275 |
chatbot_open_ai_streaming_name = gr.State("chatbot_open_ai_streaming")
|
3276 |
-
gr.Image(value=streaming_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False)
|
3277 |
chatbot_open_ai_streaming_select_btn = gr.Button("👆選擇【飛特音速】", elem_id="streaming_chatbot_btn", visible=True, variant="primary")
|
3278 |
with gr.Accordion("🚀 飛特音速 敘述", open=False):
|
3279 |
gr.Markdown(value=streaming_chatbot_description, visible=True)
|
3280 |
user_avatar = "https://em-content.zobj.net/source/google/263/flushed-face_1f633.png"
|
3281 |
# 飛特精靈
|
3282 |
with gr.Column(scale=1, variant="panel", visible=True):
|
3283 |
-
vaitor_chatbot_avatar_url = "https://junyitopicimg.s3.amazonaws.com/s4byy--icon.jpe
|
3284 |
vaitor_chatbot_avatar_images = gr.State([user_avatar, vaitor_chatbot_avatar_url])
|
3285 |
vaitor_chatbot_description = """Hi,我是你的AI學伴【飛特精靈】,\n
|
3286 |
我可以陪你一起學習本次的內容,有什麼問題都可以問我喔!\n
|
@@ -3291,7 +3291,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
3291 |
🦄 如果達到上限,或是遇到精靈很累,請問問其他朋友,像是飛特音速說話的速度比較快,你是否跟得上呢?你也可以和其他精靈互動看看喔!\n
|
3292 |
"""
|
3293 |
chatbot_open_ai_name = gr.State("chatbot_open_ai")
|
3294 |
-
gr.Image(value=vaitor_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False)
|
3295 |
vaitor_chatbot_select_btn = gr.Button("👆選擇【飛特精靈】", elem_id="chatbot_btn", visible=True, variant="primary")
|
3296 |
with gr.Accordion("🦄 飛特精靈 敘述", open=False):
|
3297 |
vaitor_chatbot_description_value = gr.Markdown(value=vaitor_chatbot_description, visible=True)
|
@@ -3306,13 +3306,13 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
3306 |
💤 個性:喜歡學習新知,擁有最旺盛的好奇心,家裡堆滿百科全書,例如:國家地理頻道出版的「終極魚百科」,雖都沒有看完,常常被梨梨唸是三分鐘熱度,但是也一點一點學習到不同領域的知識。雖然有時會忘東忘西,但認真起來也是很可靠,答應的事絕對使命必達。遇到挑戰時,勇於跳出舒適圈,追求自我改變,視困難為成長的機會。
|
3307 |
"""
|
3308 |
foxcat_chatbot_name = gr.State("foxcat")
|
3309 |
-
gr.Image(value=foxcat_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False)
|
3310 |
foxcat_chatbot_select_btn = gr.Button("👆選擇【狐狸貓】", visible=True, variant="primary", elem_classes="chatbot_select_btn")
|
3311 |
with gr.Accordion("💜 狐狸貓 敘述", open=False):
|
3312 |
foxcat_chatbot_description_value = gr.Markdown(value=foxcat_chatbot_description, visible=True)
|
3313 |
# 梨梨
|
3314 |
with gr.Column(scale=1, variant="panel"):
|
3315 |
-
lili_chatbot_avatar_url = "https://junyitopicimg.s3.amazonaws.com/live/v1283-new-topic-44-icon.png
|
3316 |
lili_avatar_images = gr.State([user_avatar, lili_chatbot_avatar_url])
|
3317 |
lili_chatbot_description = """你好,我是溫柔的【梨梨】,很高興可以在這裡陪伴你學習。如果你有任何疑問,請隨時向我提出哦! \n
|
3318 |
🤔 三年級學生|10 歲|女\n
|
@@ -3325,7 +3325,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
3325 |
- 喜歡整整齊齊的環境,所以一到麥麥家就受不了
|
3326 |
"""
|
3327 |
lili_chatbot_name = gr.State("lili")
|
3328 |
-
gr.Image(value=lili_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False)
|
3329 |
lili_chatbot_select_btn = gr.Button("👆選擇【梨梨】", visible=True, variant="primary", elem_classes="chatbot_select_btn")
|
3330 |
with gr.Accordion("🧡 梨梨 敘述", open=False):
|
3331 |
lili_chatbot_description_value = gr.Markdown(value=lili_chatbot_description, visible=True)
|
@@ -3340,7 +3340,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
3340 |
💤 個性:喜歡問問題,就算被梨梨ㄘㄟ,也還是照問|憨厚,外向好動,樂天開朗,不會被難題打敗|喜歡收集各式各樣的東西;房間只有在整理的那一天最乾淨
|
3341 |
"""
|
3342 |
maimai_chatbot_name = gr.State("maimai")
|
3343 |
-
gr.Image(value=maimai_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False)
|
3344 |
maimai_chatbot_select_btn = gr.Button("👆選擇【麥麥】", visible=True, variant="primary", elem_classes="chatbot_select_btn")
|
3345 |
with gr.Accordion("💙 麥麥 敘述", open=False):
|
3346 |
maimai_chatbot_description_value = gr.Markdown(value=maimai_chatbot_description, visible=True)
|
|
|
3273 |
💤 我還在成長,體力有限,每一次學習只能回答十個問題,請讓我休息一下再問問題喔~
|
3274 |
"""
|
3275 |
chatbot_open_ai_streaming_name = gr.State("chatbot_open_ai_streaming")
|
3276 |
+
gr.Image(value=streaming_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False, show_fullscreen_button=False, show_share_button=False)
|
3277 |
chatbot_open_ai_streaming_select_btn = gr.Button("👆選擇【飛特音速】", elem_id="streaming_chatbot_btn", visible=True, variant="primary")
|
3278 |
with gr.Accordion("🚀 飛特音速 敘述", open=False):
|
3279 |
gr.Markdown(value=streaming_chatbot_description, visible=True)
|
3280 |
user_avatar = "https://em-content.zobj.net/source/google/263/flushed-face_1f633.png"
|
3281 |
# 飛特精靈
|
3282 |
with gr.Column(scale=1, variant="panel", visible=True):
|
3283 |
+
vaitor_chatbot_avatar_url = "https://junyitopicimg.s3.amazonaws.com/s4byy--icon.jpe"
|
3284 |
vaitor_chatbot_avatar_images = gr.State([user_avatar, vaitor_chatbot_avatar_url])
|
3285 |
vaitor_chatbot_description = """Hi,我是你的AI學伴【飛特精靈】,\n
|
3286 |
我可以陪你一起學習本次的內容,有什麼問題都可以問我喔!\n
|
|
|
3291 |
🦄 如果達到上限,或是遇到精靈很累,請問問其他朋友,像是飛特音速說話的速度比較快,你是否跟得上呢?你也可以和其他精靈互動看看喔!\n
|
3292 |
"""
|
3293 |
chatbot_open_ai_name = gr.State("chatbot_open_ai")
|
3294 |
+
gr.Image(value=vaitor_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False, show_fullscreen_button=False, show_share_button=False)
|
3295 |
vaitor_chatbot_select_btn = gr.Button("👆選擇【飛特精靈】", elem_id="chatbot_btn", visible=True, variant="primary")
|
3296 |
with gr.Accordion("🦄 飛特精靈 敘述", open=False):
|
3297 |
vaitor_chatbot_description_value = gr.Markdown(value=vaitor_chatbot_description, visible=True)
|
|
|
3306 |
💤 個性:喜歡學習新知,擁有最旺盛的好奇心,家裡堆滿百科全書,例如:國家地理頻道出版的「終極魚百科」,雖都沒有看完,常常被梨梨唸是三分鐘熱度,但是也一點一點學習到不同領域的知識。雖然有時會忘東忘西,但認真起來也是很可靠,答應的事絕對使命必達。遇到挑戰時,勇於跳出舒適圈,追求自我改變,視困難為成長的機會。
|
3307 |
"""
|
3308 |
foxcat_chatbot_name = gr.State("foxcat")
|
3309 |
+
gr.Image(value=foxcat_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False, show_fullscreen_button=False, show_share_button=False)
|
3310 |
foxcat_chatbot_select_btn = gr.Button("👆選擇【狐狸貓】", visible=True, variant="primary", elem_classes="chatbot_select_btn")
|
3311 |
with gr.Accordion("💜 狐狸貓 敘述", open=False):
|
3312 |
foxcat_chatbot_description_value = gr.Markdown(value=foxcat_chatbot_description, visible=True)
|
3313 |
# 梨梨
|
3314 |
with gr.Column(scale=1, variant="panel"):
|
3315 |
+
lili_chatbot_avatar_url = "https://junyitopicimg.s3.amazonaws.com/live/v1283-new-topic-44-icon.png"
|
3316 |
lili_avatar_images = gr.State([user_avatar, lili_chatbot_avatar_url])
|
3317 |
lili_chatbot_description = """你好,我是溫柔的【梨梨】,很高興可以在這裡陪伴你學習。如果你有任何疑問,請隨時向我提出哦! \n
|
3318 |
🤔 三年級學生|10 歲|女\n
|
|
|
3325 |
- 喜歡整整齊齊的環境,所以一到麥麥家就受不了
|
3326 |
"""
|
3327 |
lili_chatbot_name = gr.State("lili")
|
3328 |
+
gr.Image(value=lili_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False, show_fullscreen_button=False, show_share_button=False)
|
3329 |
lili_chatbot_select_btn = gr.Button("👆選擇【梨梨】", visible=True, variant="primary", elem_classes="chatbot_select_btn")
|
3330 |
with gr.Accordion("🧡 梨梨 敘述", open=False):
|
3331 |
lili_chatbot_description_value = gr.Markdown(value=lili_chatbot_description, visible=True)
|
|
|
3340 |
💤 個性:喜歡問問題,就算被梨梨ㄘㄟ,也還是照問|憨厚,外向好動,樂天開朗,不會被難題打敗|喜歡收集各式各樣的東西;房間只有在整理的那一天最乾淨
|
3341 |
"""
|
3342 |
maimai_chatbot_name = gr.State("maimai")
|
3343 |
+
gr.Image(value=maimai_chatbot_avatar_url, height=100, width=100, show_label=False, show_download_button=False, show_fullscreen_button=False, show_share_button=False)
|
3344 |
maimai_chatbot_select_btn = gr.Button("👆選擇【麥麥】", visible=True, variant="primary", elem_classes="chatbot_select_btn")
|
3345 |
with gr.Accordion("💙 麥麥 敘述", open=False):
|
3346 |
maimai_chatbot_description_value = gr.Markdown(value=maimai_chatbot_description, visible=True)
|