dgarrett-synaptics commited on
Commit
ee1176b
·
verified ·
1 Parent(s): 5ec8e48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -27,6 +27,9 @@ def get_oauth_info(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken |
27
 
28
  def compile_model(model_name):
29
 
 
 
 
30
  # Run the comparison
31
  model = 'hello_world.tflite'
32
  out_dir = './tmp'
 
27
 
28
  def compile_model(model_name):
29
 
30
+ if oauth_info['token'] is None:
31
+ return "ERROR - please log into HuggingFace to continue"
32
+
33
  # Run the comparison
34
  model = 'hello_world.tflite'
35
  out_dir = './tmp'