not-lain commited on
Commit
e4fcfe2
1 Parent(s): 63e2602
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -277,17 +277,6 @@ def create_demo():
277
  ):
278
  nonlocal support_crew
279
  api_key = oauth_token.token
280
- if not api_key:
281
- history = history or []
282
- history.append(
283
- {
284
- "role": "assistant",
285
- "content": "Please provide huggingface key.",
286
- "metadata": {"title": "❌ Error"},
287
- }
288
- )
289
- yield history
290
- return
291
 
292
  if support_crew is None:
293
  support_crew = SupportCrew(api_key=api_key)
 
277
  ):
278
  nonlocal support_crew
279
  api_key = oauth_token.token
 
 
 
 
 
 
 
 
 
 
 
280
 
281
  if support_crew is None:
282
  support_crew = SupportCrew(api_key=api_key)