Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,8 @@ class Reviewer:
|
|
95 |
usage = response.usage.total_tokens
|
96 |
except Exception as e:
|
97 |
# 处理其他的异常
|
98 |
-
result = str(e)
|
99 |
-
usage = str(e)
|
100 |
print("********"*10)
|
101 |
print(result)
|
102 |
print("********"*10)
|
@@ -205,7 +205,7 @@ The paper is scored on a scale of 1-10, with 10 being the full mark, and 6 stand
|
|
205 |
xxx"""
|
206 |
),
|
207 |
gradio.inputs.File(label="请上传论文PDF(必填)",type="bytes"),
|
208 |
-
gradio.inputs.Radio(choices=["English", "Chinese"],
|
209 |
default="English",
|
210 |
label="选择输出语言"),
|
211 |
]
|
|
|
95 |
usage = response.usage.total_tokens
|
96 |
except Exception as e:
|
97 |
# 处理其他的异常
|
98 |
+
result = str(e)
|
99 |
+
usage = str(e)
|
100 |
print("********"*10)
|
101 |
print(result)
|
102 |
print("********"*10)
|
|
|
205 |
xxx"""
|
206 |
),
|
207 |
gradio.inputs.File(label="请上传论文PDF(必填)",type="bytes"),
|
208 |
+
gradio.inputs.Radio(choices=["English", "Chinese", "French", "German","Japenese"],
|
209 |
default="English",
|
210 |
label="选择输出语言"),
|
211 |
]
|