Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ Transformer Models: These models, such as BERT and GPT, have revolutionized NLP
|
|
62 |
|
63 |
# 直接调用生成函数并输出结果
|
64 |
# 使用 Gradio 创建前端界面
|
65 |
-
|
66 |
|
67 |
-
#
|
68 |
-
|
|
|
|
62 |
|
63 |
# 直接调用生成函数并输出结果
|
64 |
# 使用 Gradio 创建前端界面
|
65 |
+
output = query(data)
|
66 |
|
67 |
+
# 将生成的结果保存到 output.txt 文件
|
68 |
+
with open("output.txt", "w") as f:
|
69 |
+
f.write(output)
|