efayguo commited on
Commit
26b90bf
·
verified ·
1 Parent(s): 888db36

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -13,13 +13,16 @@ def run(assignment):
13
  'assignment': assignment,
14
  }
15
 
 
16
 
17
- gr.Info(f"Start processing: {assignment}... you many need to wait up to 30 seconds ||| 开始任务: {assignment}... 你可能要等待30秒", duration=30)
18
 
 
 
 
 
 
19
 
20
- result= Coder().crew().kickoff(inputs=inputs)
21
- output = result.raw
22
- return output
23
 
24
 
25
  # Build the UI
 
13
  'assignment': assignment,
14
  }
15
 
16
+ if assignment:
17
 
18
+ gr.Info(f"Start processing: {assignment}... you many need to wait up to 30 seconds / 开始任务: {assignment}... 你可能要等待30秒", duration=30)
19
 
20
+ result= Coder().crew().kickoff(inputs=inputs)
21
+ output = result.raw
22
+ return output
23
+ else:
24
+ gr.Warning("Please input your task / 请填写任务", duration=5)
25
 
 
 
 
26
 
27
 
28
  # Build the UI