peiji commited on
Commit
921304a
1 Parent(s): 6174f2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -1,15 +1,10 @@
1
  # -*- encoding: utf-8 -*-
2
  import gradio as gr
3
  from gradio.components import label
4
- from volcengine.maas import MaasService, MaasException
5
  import requests
6
  import json
7
- maas = MaasService('maas-api.ml-platform-cn-beijing.volces.com', 'cn-beijing', connection_timeout=240, socket_timeout=240)
8
-
9
 
10
  def llm_infer(messages, character_name, character_info, user_name, user_info):
11
-
12
-
13
  url='https://search.bytedance.net/gpt/openapi/online/v2/crawl?ak=paQxYUZ0TcbuBSFPgSbwR5QBdizjW1Ut'
14
  headers={
15
  'Content-Type': 'application/json'
@@ -81,7 +76,4 @@ with gr.Blocks(fill_height=True, css=CSS) as demo:
81
  chat_input.submit(respond, [chat_input,chatbot, character_name, character_info, user_name, user_info],[chat_input, chatbot])
82
  clear = gr.ClearButton([chat_input, chatbot],)
83
 
84
-
85
-
86
-
87
  demo.launch()
 
1
  # -*- encoding: utf-8 -*-
2
  import gradio as gr
3
  from gradio.components import label
 
4
  import requests
5
  import json
 
 
6
 
7
  def llm_infer(messages, character_name, character_info, user_name, user_info):
 
 
8
  url='https://search.bytedance.net/gpt/openapi/online/v2/crawl?ak=paQxYUZ0TcbuBSFPgSbwR5QBdizjW1Ut'
9
  headers={
10
  'Content-Type': 'application/json'
 
76
  chat_input.submit(respond, [chat_input,chatbot, character_name, character_info, user_name, user_info],[chat_input, chatbot])
77
  clear = gr.ClearButton([chat_input, chatbot],)
78
 
 
 
 
79
  demo.launch()