selim-ba commited on
Commit
5f8874e
·
verified ·
1 Parent(s): c2a535b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -109,12 +109,9 @@ class SuperSmartAgent:
109
  "cold": "hot"
110
  }
111
  opposite = opposites.get(word.lower(), "unknown")
112
- state["response"] = opposite
113
- return state["response"]
114
-
115
  except (ValueError, IndexError):
116
  state["response"] = "Could not determine the opposite."
117
-
118
  # Default response for other types of questions
119
  else:
120
  state["response"] = f"I've processed your statement: '{question}'. Here's a generic acknowledgment."
 
109
  "cold": "hot"
110
  }
111
  opposite = opposites.get(word.lower(), "unknown")
112
+ state["response"] = f"{opposite}"
 
 
113
  except (ValueError, IndexError):
114
  state["response"] = "Could not determine the opposite."
 
115
  # Default response for other types of questions
116
  else:
117
  state["response"] = f"I've processed your statement: '{question}'. Here's a generic acknowledgment."