Update app.py
Browse files
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'
|