Update app.py
Browse files
app.py
CHANGED
@@ -102,9 +102,7 @@ def set_visible_true():
|
|
102 |
#title = """<h1 align="center">🔥GPT4 with ChatCompletions API +🚀Gradio-Streaming</h1>"""
|
103 |
|
104 |
#display message for themes feature
|
105 |
-
theme_addon_msg = ""
|
106 |
-
<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>
|
107 |
-
"""
|
108 |
|
109 |
#Using info to add additional information about System message in GPT4
|
110 |
system_msg_info = ""
|
@@ -115,11 +113,7 @@ theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="b
|
|
115 |
|
116 |
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 360px; overflow: auto;}""",
|
117 |
theme=theme) as demo:
|
118 |
-
|
119 |
-
#gr.HTML("""<h3 align="center">🔥This Huggingface Gradio Demo provides you full access to GPT4 API (4096 token limit). 🎉🥳🎉You don't need any OPENAI API key🙌</h1>""")
|
120 |
-
#gr.HTML(theme_addon_msg)
|
121 |
-
#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>''')
|
122 |
-
|
123 |
with gr.Column(elem_id = "col_container"):
|
124 |
#GPT4 API Key is provided by Huggingface
|
125 |
with gr.Accordion("", open=False, visible=False):
|
|
|
102 |
#title = """<h1 align="center">🔥GPT4 with ChatCompletions API +🚀Gradio-Streaming</h1>"""
|
103 |
|
104 |
#display message for themes feature
|
105 |
+
theme_addon_msg = ""
|
|
|
|
|
106 |
|
107 |
#Using info to add additional information about System message in GPT4
|
108 |
system_msg_info = ""
|
|
|
113 |
|
114 |
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 360px; overflow: auto;}""",
|
115 |
theme=theme) as demo:
|
116 |
+
|
|
|
|
|
|
|
|
|
117 |
with gr.Column(elem_id = "col_container"):
|
118 |
#GPT4 API Key is provided by Huggingface
|
119 |
with gr.Accordion("", open=False, visible=False):
|