Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def answer_question(question):
|
|
| 18 |
return agent.run(question)
|
| 19 |
|
| 20 |
def submit_to_gaia(profile: gr.OAuthProfile):
|
| 21 |
-
|
| 22 |
return "❌ Please log in to Hugging Face first!"
|
| 23 |
username = profile.username
|
| 24 |
# rest of your logic...
|
|
|
|
| 18 |
return agent.run(question)
|
| 19 |
|
| 20 |
def submit_to_gaia(profile: gr.OAuthProfile):
|
| 21 |
+
if profile is None:
|
| 22 |
return "❌ Please log in to Hugging Face first!"
|
| 23 |
username = profile.username
|
| 24 |
# rest of your logic...
|