rbarac commited on
Commit
3f1d92a
·
verified ·
1 Parent(s): a5ca85f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ pipe = pipeline("text-classification", model="rbarac/open-rotor-copilot") # Or
7
  def analyze_text_input(input_str):
8
  # Input_str could be: "gyro_std=123.4, vbat_drop=0.91, ..." etc.
9
  result = pipe(input_str)
10
- return result[0]["label"]
11
 
12
  iface = gr.Interface(
13
  fn=analyze_text_input,
 
7
  def analyze_text_input(input_str):
8
  # Input_str could be: "gyro_std=123.4, vbat_drop=0.91, ..." etc.
9
  result = pipe(input_str)
10
+ return result[0]["reason"]
11
 
12
  iface = gr.Interface(
13
  fn=analyze_text_input,