edbeeching commited on
Commit
385de10
·
1 Parent(s): cacca81

remove email address validation

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -190,11 +190,7 @@ def validate_request(request: GenerationRequest, oauth_token: Optional[Union[gr.
190
  raise Exception("Top K must be between 1 and 100")
191
  if request.top_p < 0.0 or request.top_p > 1.0:
192
  raise Exception("Top P must be between 0.0 and 1.0")
193
-
194
- # check valid email address TODO: could use py3-validate-email https://stackoverflow.com/questions/8022530/how-to-check-for-valid-email-address
195
- if "@" not in request.email or "." not in request.email.split("@")[-1]:
196
- raise Exception("Invalid email address")
197
-
198
  return request
199
 
200
 
 
190
  raise Exception("Top K must be between 1 and 100")
191
  if request.top_p < 0.0 or request.top_p > 1.0:
192
  raise Exception("Top P must be between 0.0 and 1.0")
193
+
 
 
 
 
194
  return request
195
 
196