rbarac commited on
Commit
1eeeb14
·
verified ·
1 Parent(s): 40f3913

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ pipe = pipeline("text2text-generation", 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
- out = result[0].get("reason") or result[0].get("explanation") or result[0]["label"]
11
  return out
12
 
13
  iface = gr.Interface(
 
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
+ out = result[0].get("generated_text")
11
  return out
12
 
13
  iface = gr.Interface(