Spaces:
Runtime error
Runtime error
yizhangliu
commited on
Commit
·
d403886
1
Parent(s):
63198ee
Update app.py
Browse files
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 |
-
|
42 |
-
[gr.Textbox(label = ' 输入问题: '),
|
43 |
gr.Textbox(label = ' 如果失败,你可以填写自己的session-token')],
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
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)
|