update app.py
Browse files
app.py
CHANGED
@@ -107,11 +107,6 @@ def set_visible_true():
|
|
107 |
|
108 |
title = """<h1 align="center">🔥English Teaching Assistant for Primary 6 Students +🚀Gradio-Streaming</h1>"""
|
109 |
|
110 |
-
#display message for themes feature
|
111 |
-
theme_addon_msg = """<center>🌟 Discover Gradio Themes with this Demo, featuring v3.22.0! Gradio v3.23.0 also enables seamless Theme sharing. You can develop or modify a theme, and send it to the hub using simple <code>theme.push_to_hub()</code>.
|
112 |
-
<br>🏆Participate in Gradio's Theme Building Hackathon to exhibit your creative flair and win fabulous rewards! Join here - <a href="https://huggingface.co/Gradio-Themes" target="_blank">Gradio-Themes-Party🎨</a> 🏆</center>
|
113 |
-
"""
|
114 |
-
|
115 |
#Using info to add additional information about System message in GPT4
|
116 |
system_msg_info = """A conversation could begin with a system message to gently instruct the assistant.
|
117 |
System message helps set the behavior of the AI Assistant. For example, the assistant could be instructed with 'You are a helpful assistant.'"""
|
@@ -124,9 +119,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
124 |
theme=theme) as demo:
|
125 |
gr.HTML(title)
|
126 |
gr.HTML("""<h3 align="center">🔥This application provides AI assistance for various English teaching roles in a Singapore Primary School for Primary 6 students. 🎉🥳🎉🙌</h1>""")
|
127 |
-
|
128 |
-
gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPT4?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
|
129 |
-
|
130 |
with gr.Column(elem_id = "col_container"):
|
131 |
#GPT4 API Key is provided by Huggingface
|
132 |
with gr.Accordion(label="System message:", open=False):
|
|
|
107 |
|
108 |
title = """<h1 align="center">🔥English Teaching Assistant for Primary 6 Students +🚀Gradio-Streaming</h1>"""
|
109 |
|
|
|
|
|
|
|
|
|
|
|
110 |
#Using info to add additional information about System message in GPT4
|
111 |
system_msg_info = """A conversation could begin with a system message to gently instruct the assistant.
|
112 |
System message helps set the behavior of the AI Assistant. For example, the assistant could be instructed with 'You are a helpful assistant.'"""
|
|
|
119 |
theme=theme) as demo:
|
120 |
gr.HTML(title)
|
121 |
gr.HTML("""<h3 align="center">🔥This application provides AI assistance for various English teaching roles in a Singapore Primary School for Primary 6 students. 🎉🥳🎉🙌</h1>""")
|
122 |
+
|
|
|
|
|
123 |
with gr.Column(elem_id = "col_container"):
|
124 |
#GPT4 API Key is provided by Huggingface
|
125 |
with gr.Accordion(label="System message:", open=False):
|