ysharma HF staff commited on
Commit
68bf2d8
1 Parent(s): 573d13e

removed comments

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -102,12 +102,6 @@ def set_visible_false():
102
  def set_visible_true():
103
  return gr.update(visible=True)
104
 
105
- #title = """<h1 align="center">🔥GPT4 with ChatCompletions API +🚀Gradio-Streaming</h1>"""
106
- #display message for themes feature
107
- #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>.
108
- #<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>
109
- #"""
110
-
111
  title = """<h1 align="center">🔥GPT4 using Chat-Completions API & 🚀Gradio-Streaming</h1>"""
112
  #display message for themes feature
113
  theme_addon_msg = """<center>🌟 This Demo also introduces you to Gradio Themes. Discover more on Gradio website using our <a href="https://gradio.app/theming-guide/" target="_blank">Themeing-Guide🎨</a>! You can develop from scratch, modify an existing Gradio theme, and share your themes with community by uploading them to huggingface-hub easily using <code>theme.push_to_hub()</code>.</center>
@@ -136,11 +130,6 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
136
  system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="",placeholder="Type here..")
137
  accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
138
 
139
- #with gr.Column(elem_id = "col_container"):
140
- # #GPT4 API Key is provided by Huggingface
141
- # with gr.Accordion(label="System message:", open=False):
142
- # system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="")
143
- # accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
144
  chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
145
  inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")
146
  state = gr.State([])
 
102
  def set_visible_true():
103
  return gr.update(visible=True)
104
 
 
 
 
 
 
 
105
  title = """<h1 align="center">🔥GPT4 using Chat-Completions API & 🚀Gradio-Streaming</h1>"""
106
  #display message for themes feature
107
  theme_addon_msg = """<center>🌟 This Demo also introduces you to Gradio Themes. Discover more on Gradio website using our <a href="https://gradio.app/theming-guide/" target="_blank">Themeing-Guide🎨</a>! You can develop from scratch, modify an existing Gradio theme, and share your themes with community by uploading them to huggingface-hub easily using <code>theme.push_to_hub()</code>.</center>
 
130
  system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="",placeholder="Type here..")
131
  accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
132
 
 
 
 
 
 
133
  chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
134
  inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")
135
  state = gr.State([])