BlinkDL commited on
Commit
0d8018b
·
1 Parent(s): c4f1727

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -55,8 +55,6 @@ def evaluate(
55
 
56
  instruction = instruction.strip()
57
  input = input.strip()
58
- if len(instruction) == 0:
59
- return 'Error: please enter some instruction'
60
  ctx = generate_prompt(instruction, input)
61
 
62
  gpu_info = nvmlDeviceGetMemoryInfo(gpu_h)
@@ -91,9 +89,11 @@ def evaluate(
91
  yield out_str.strip()
92
 
93
  examples = [
94
- ["Tell me about ravens.", 200, 1.0, 0.7, 0.2, 0.2],
95
- ["Explain the following metaphor: Life is like cats.", 200, 1.0, 0.7, 0.2, 0.2],
96
- ["Write a python function to read data from an excel file.", 200, 1.0, 0.7, 0.2, 0.2],
 
 
97
  ]
98
 
99
  g = gr.Interface(
 
55
 
56
  instruction = instruction.strip()
57
  input = input.strip()
 
 
58
  ctx = generate_prompt(instruction, input)
59
 
60
  gpu_info = nvmlDeviceGetMemoryInfo(gpu_h)
 
89
  yield out_str.strip()
90
 
91
  examples = [
92
+ ["Tell me about ravens.", "", 200, 1.0, 0.7, 0.2, 0.2],
93
+ ["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.7, 0.2, 0.2],
94
+ ["Write a python function to read data from an excel file.", "", 200, 1.0, 0.7, 0.2, 0.2],
95
+ ["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.7, 0.2, 0.2],
96
+ ["Arrange the given numbers in ascending order.", "2, 4, 0, 8, 3", 200, 1.0, 0.7, 0.2, 0.2],
97
  ]
98
 
99
  g = gr.Interface(