kevinwang676 commited on
Commit
b3b99a7
·
1 Parent(s): 8a76551

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -2
app.py CHANGED
@@ -130,13 +130,20 @@ def gr_hide():
130
 
131
 
132
  with gr.Blocks() as demo:
 
 
133
  if not os.path.isfile('config.json'):
134
  save_config()
135
 
136
  with open('config.json', 'r', encoding='utf-8') as f:
137
  configs = json.loads(f.read())
138
 
139
- gr.Markdown('''<h1><center>ChatGLM Demo</center></h1>''')
 
 
 
 
 
140
 
141
  with gr.Row():
142
  max_length = gr.Slider(minimum=4.0, maximum=4096.0, step=4.0, label='Max Length', value=configs['max_length'])
@@ -187,7 +194,41 @@ with gr.Blocks() as demo:
187
  log.submit(update_history, **edit_kwargs)
188
  submit_log.click(update_history, **edit_kwargs)
189
  cancel_log.click(gr_hide, outputs=edit_list)
190
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
 
192
  if __name__ == '__main__':
193
  demo.queue(concurrency_count=5, max_size=20).launch(debug=True)
 
130
 
131
 
132
  with gr.Blocks() as demo:
133
+
134
+ with gr.Tab("和ChatGLM谈天说地"):
135
  if not os.path.isfile('config.json'):
136
  save_config()
137
 
138
  with open('config.json', 'r', encoding='utf-8') as f:
139
  configs = json.loads(f.read())
140
 
141
+ gr.Markdown('''# <center>🥳 滔滔AI 🎶</center>
142
+
143
+ ### <center>🥰 - 滔滔AI,让有爱的AI滔滔不绝</center>
144
+ ### <center>🦄 - TalkTalkAI, let lovely AI brighten the future</center>
145
+
146
+ ''')
147
 
148
  with gr.Row():
149
  max_length = gr.Slider(minimum=4.0, maximum=4096.0, step=4.0, label='Max Length', value=configs['max_length'])
 
194
  log.submit(update_history, **edit_kwargs)
195
  submit_log.click(update_history, **edit_kwargs)
196
  cancel_log.click(gr_hide, outputs=edit_list)
197
+
198
+ gr.HTML('''
199
+ <div class="footer">
200
+ <p>🖼️💕🎡 - 滔滔AI,为爱滔滔
201
+ </p>
202
+ </div>
203
+ ''')
204
+
205
+ with gr.Tab("发现更多有趣功能"):
206
+
207
+ gr.Markdown('''# <center>🥳 滔滔AI 🎶</center>
208
+
209
+ ### <center>🥰 - 滔滔AI,让有爱的AI滔滔不绝</center>
210
+ ### <center>🦄 - TalkTalkAI, let lovely AI brighten the future</center>
211
+
212
+ ''')
213
+
214
+
215
+ gr.Markdown(
216
+ """
217
+ ## <center>😄 - 更多精彩尽在滔滔AI</center>
218
+ ## <center>🖌️ [Stable Diffusion](https://kevinwang676-stable-diffusion-for-all.hf.space):AI画家,为您执笔作画<center>
219
+
220
+ ## <center>🎶 [Sovits](https://kevinwang676-voice-cloning-for-bilibili.hf.space):AI歌手,为您一展歌喉<center>
221
+
222
+ """
223
+ )
224
+
225
+
226
+ gr.HTML('''
227
+ <div class="footer">
228
+ <p>🖼️💕🎡 - 滔滔AI,为爱滔滔
229
+ </p>
230
+ </div>
231
+ ''')
232
 
233
  if __name__ == '__main__':
234
  demo.queue(concurrency_count=5, max_size=20).launch(debug=True)