qiqiWav commited on
Commit
b6e9854
1 Parent(s): 9677fe0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -5,12 +5,8 @@ import requests
5
  processed_inputs = {}
6
 
7
  def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None):
8
- print(f"model_iddddddd: {model_id}")
9
- print(f"q_methodddddd: {q_method}")
10
- print(f"emailllllll: {email}")
11
- print(f"oauth_tokennnnn: {oauth_token}")
12
  if oauth_token is None or oauth_token.token is None:
13
- raise ValueError("You must be logged in to use this service.")
14
 
15
  if not model_id or not q_method or not email:
16
  return "All fields are required!"
@@ -28,7 +24,6 @@ def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None)
28
  "email": email,
29
  "oauth_token": oauth_token.token
30
  }
31
- print(f"dataaaaa: {data}")
32
 
33
  response = requests.post(url, json=data)
34
 
 
5
  processed_inputs = {}
6
 
7
  def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None):
 
 
 
 
8
  if oauth_token is None or oauth_token.token is None:
9
+ return "You must be logged in to use this service.
10
 
11
  if not model_id or not q_method or not email:
12
  return "All fields are required!"
 
24
  "email": email,
25
  "oauth_token": oauth_token.token
26
  }
 
27
 
28
  response = requests.post(url, json=data)
29