app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def parse_text(text):
|
|
47 |
# message_with_stats = f'{message}'
|
48 |
# return message, parse_text(message_with_stats)
|
49 |
|
50 |
-
valid_api_keys = []
|
51 |
|
52 |
|
53 |
def api_key_check(api_key):
|
@@ -811,7 +811,7 @@ Use ChatGPT to summary the papers.Star our Github [🌟ChatPaper](https://github
|
|
811 |
|
812 |
api_input = [
|
813 |
gradio.inputs.Textbox(label="请输入你的API-key(必填, 多个API-key请用英文逗号隔开)",
|
814 |
-
default="",
|
815 |
type='password')
|
816 |
]
|
817 |
api_gui = gradio.Interface(fn=valid_apikey,
|
@@ -846,7 +846,7 @@ Use ChatGPT to summary the papers.Star our Github [🌟ChatPaper](https://github
|
|
846 |
# 创建Gradio界面
|
847 |
ip = [
|
848 |
gradio.inputs.Textbox(label="请输入你的API-key(必填, 多个API-key请用英文逗号隔开),不需要空格",
|
849 |
-
default="",
|
850 |
type='password'),
|
851 |
gradio.inputs.Textbox(
|
852 |
label="请输入论文大标题索引(用英文逗号隔开,必填)",
|
|
|
47 |
# message_with_stats = f'{message}'
|
48 |
# return message, parse_text(message_with_stats)
|
49 |
|
50 |
+
valid_api_keys = [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]
|
51 |
|
52 |
|
53 |
def api_key_check(api_key):
|
|
|
811 |
|
812 |
api_input = [
|
813 |
gradio.inputs.Textbox(label="请输入你的API-key(必填, 多个API-key请用英文逗号隔开)",
|
814 |
+
default="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",
|
815 |
type='password')
|
816 |
]
|
817 |
api_gui = gradio.Interface(fn=valid_apikey,
|
|
|
846 |
# 创建Gradio界面
|
847 |
ip = [
|
848 |
gradio.inputs.Textbox(label="请输入你的API-key(必填, 多个API-key请用英文逗号隔开),不需要空格",
|
849 |
+
default="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",
|
850 |
type='password'),
|
851 |
gradio.inputs.Textbox(
|
852 |
label="请输入论文大标题索引(用英文逗号隔开,必填)",
|