yizhangliu commited on
Commit
d403886
·
1 Parent(s): 63198ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -14,7 +14,7 @@ def read_token():
14
  def chat(text,session_tokenz):
15
 
16
  try:
17
- loaded_session_token = os.environ['Newkeyz']
18
 
19
  session_token = read_token()
20
 
@@ -37,10 +37,9 @@ def chat(text,session_tokenz):
37
 
38
 
39
  import gradio as gr
40
- gr.Interface(
41
- chat,
42
- [gr.Textbox(label = ' 输入问题: '),
43
  gr.Textbox(label = ' 如果失败,你可以填写自己的session-token')],
44
- outputs = gr.outputs.Textbox(type="text",label="ChatGPT 回复你了:"),
45
- title = "ChatGPT 中文",
46
- description= "").launch(debug = True)
 
14
  def chat(text,session_tokenz):
15
 
16
  try:
17
+ //loaded_session_token = os.environ['Newkeyz']
18
 
19
  session_token = read_token()
20
 
 
37
 
38
 
39
  import gradio as gr
40
+ gr.Interface(chat,
41
+ inputs = [gr.Textbox(label = ' 输入问题: '),
 
42
  gr.Textbox(label = ' 如果失败,你可以填写自己的session-token')],
43
+ outputs = gr.outputs.Textbox(type="text",label="ChatGPT 回复你了:"),
44
+ title = "ChatGPT 中文",
45
+ description= "").launch(debug = True)