yukimama commited on
Commit
477c07b
·
verified ·
1 Parent(s): ad4fa8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -27,4 +27,9 @@ def generate_command(prompt, max_length=100):
27
  end = len(generated_text)
28
  command = generated_text[start:end].strip()
29
 
30
- return command
 
 
 
 
 
 
27
  end = len(generated_text)
28
  command = generated_text[start:end].strip()
29
 
30
+ return command
31
+
32
+ # 使用示例
33
+ prompt = "刪除一個文件"
34
+ generated_command = generate_command(prompt)
35
+ print(generated_command)