id: "ddf628cf-5f3f-41ae-a278-4322e07edabe" name: "gr / gradio / file" description: "General SOP for common requests related to gr, gradio, file." version: "0.1.0" tags:
- "gr"
- "gradio"
- "file" triggers:
- "Use when the user asks for a process or checklist."
- "Use when you want to reuse a previously mentioned method/SOP." examples:
- input: "Break this into best-practice, executable steps."
gr / gradio / file
General SOP for common requests related to gr, gradio, file.
Prompt
Follow this SOP (replace specifics with placeholders like <PROJECT>/<ENV>/<VERSION>):
- bash
- pip install gradio
-
- 接着,写一个 Python 脚本来创建你的问答界面。下面是创建所需界面的代码
- python
- import gradio as gr
- 这个函数将会处理用户的问题,并且可以返回一个答案
- 简单起见,这里的函数会将用户输入原样返回
- 实际应用中,可以将其连接到一个更复杂的问答系统或模型
- def answer_question(question
- 处理问题并返回答案的地方
For each step, include: action, checks, and failure rollback/fallback plan. Output format: for each step number, provide status/result and what to do next.
Triggers
- Use when the user asks for a process or checklist.
- Use when you want to reuse a previously mentioned method/SOP.
Examples
Example 1
Input:
Break this into best-practice, executable steps.