Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,8 +27,7 @@ def query(data):
|
|
| 27 |
return result
|
| 28 |
|
| 29 |
# 测试用例:可以替换为动态输入
|
| 30 |
-
data =
|
| 31 |
-
"inputs": '''You are an expert in analyzing and summarizing use cases of large language models. You will be provided with a title, description, and content of a news article. Based on the human goals and outcomes, summarize in detail how LLM is used and who the end users are, paying attention to their profession or role. If the human goals or occupation information of end users is not clear, just say you don't know. The title and description are crucial for context. Your summary should integrate both the usage and occupation information clearly in at least 3 sentences.
|
| 32 |
|
| 33 |
Article Title: Unleashing the Power of Generative AI in Content Creation and Marketing
|
| 34 |
Article Description: Explore the world of generative AI in content creation, from understanding the models to its applications in marketing and content strategy.
|
|
@@ -59,7 +58,7 @@ Natural language processing(NLP) is a subfield of artificial intelligence that f
|
|
| 59 |
Transformer Models: These models, such as BERT and GPT, have revolutionized NLP by using self-attention mechanisms to process and gen
|
| 60 |
Please provide a summary explaining both how the LLM is used and detailing the occupation or roles of the end users who benefit from or are expected to use the LLM.
|
| 61 |
'''
|
| 62 |
-
|
| 63 |
|
| 64 |
# 直接调用生成函数并输出结果
|
| 65 |
# 使用 Gradio 创建前端界面
|
|
|
|
| 27 |
return result
|
| 28 |
|
| 29 |
# 测试用例:可以替换为动态输入
|
| 30 |
+
data = '''You are an expert in analyzing and summarizing use cases of large language models. You will be provided with a title, description, and content of a news article. Based on the human goals and outcomes, summarize in detail how LLM is used and who the end users are, paying attention to their profession or role. If the human goals or occupation information of end users is not clear, just say you don't know. The title and description are crucial for context. Your summary should integrate both the usage and occupation information clearly in at least 3 sentences.
|
|
|
|
| 31 |
|
| 32 |
Article Title: Unleashing the Power of Generative AI in Content Creation and Marketing
|
| 33 |
Article Description: Explore the world of generative AI in content creation, from understanding the models to its applications in marketing and content strategy.
|
|
|
|
| 58 |
Transformer Models: These models, such as BERT and GPT, have revolutionized NLP by using self-attention mechanisms to process and gen
|
| 59 |
Please provide a summary explaining both how the LLM is used and detailing the occupation or roles of the end users who benefit from or are expected to use the LLM.
|
| 60 |
'''
|
| 61 |
+
|
| 62 |
|
| 63 |
# 直接调用生成函数并输出结果
|
| 64 |
# 使用 Gradio 创建前端界面
|