lunarflu HF Staff commited on
Commit
84b83ff
·
1 Parent(s): 063fe52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -12,7 +12,6 @@ from discord import Permissions
12
  from discord.ext import commands
13
  from discord.utils import oauth_url
14
 
15
- a
16
 
17
  import discord
18
  import gradio as gr
@@ -25,7 +24,6 @@ from discord.ui import Button, View
25
 
26
 
27
  #---------------------------------------------------------------------------------------------------------------------
28
- event = Event()
29
  HF_TOKEN = os.getenv("HF_TOKEN")
30
  deepfloydif_client = Client("huggingface-projects/IF", HF_TOKEN)
31
  #---------------------------------------------------------------------------------------------------------------------
@@ -279,15 +277,12 @@ async def deepfloydif_upscale1024(index: int, path_for_upscale256_upscaling, pro
279
  def run_bot():
280
  if not DISCORD_TOKEN:
281
  print("DISCORD_TOKEN NOT SET")
282
- event.set()
283
  else:
284
  bot.run(DISCORD_TOKEN)
285
 
286
 
287
  threading.Thread(target=run_bot).start()
288
 
289
- event.wait()
290
-
291
  with gr.Blocks() as demo:
292
  gr.Markdown(
293
  """
 
12
  from discord.ext import commands
13
  from discord.utils import oauth_url
14
 
 
15
 
16
  import discord
17
  import gradio as gr
 
24
 
25
 
26
  #---------------------------------------------------------------------------------------------------------------------
 
27
  HF_TOKEN = os.getenv("HF_TOKEN")
28
  deepfloydif_client = Client("huggingface-projects/IF", HF_TOKEN)
29
  #---------------------------------------------------------------------------------------------------------------------
 
277
  def run_bot():
278
  if not DISCORD_TOKEN:
279
  print("DISCORD_TOKEN NOT SET")
 
280
  else:
281
  bot.run(DISCORD_TOKEN)
282
 
283
 
284
  threading.Thread(target=run_bot).start()
285
 
 
 
286
  with gr.Blocks() as demo:
287
  gr.Markdown(
288
  """