twinkle-toes commited on
Commit
2f0fcab
1 Parent(s): c21e24f
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -163,6 +163,8 @@ class Validator:
163
  return v.valid
164
 
165
  def maybe_convert_to_original_format(obj):
 
 
166
  if obj.get("version") != 1:
167
  return obj, False
168
  # Synthesize a traditional preset
 
163
  return v.valid
164
 
165
  def maybe_convert_to_original_format(obj):
166
+ if isinstance(obj.get("top_p"), str):
167
+ obj["top_p"] = float(obj["top_p"])
168
  if obj.get("version") != 1:
169
  return obj, False
170
  # Synthesize a traditional preset