lunarflu HF Staff commited on
Commit
7996ab9
·
1 Parent(s): 202a93d

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. musicgen.py +0 -16
musicgen.py CHANGED
@@ -71,21 +71,5 @@ async def music_create(ctx, prompt):
71
  discord_audio_file = discord.File(file, filename=audio_filename)
72
  await thread.send(file=discord_audio_file)
73
 
74
- embed = discord.Embed()
75
- embed.set_thumbnail(url="https://abs.twimg.com/icons/apple-touch-icon-192x192.png")
76
- tweet1 = "https://twitter.com/intent/tweet?text="
77
- tweet2 = "I%20generated%20this%20audio%20using%20MusicGen"
78
- tweet3 = "%20in%20the%20%F0%9F%A4%97%20@huggingface%20Discord!"
79
- tweet4 = "%0Ahf.co/join/discord%0APrompt:%20"
80
- prompt = prompt.replace(" ", "%20")
81
- intent_link = f"{tweet1}{tweet2}{tweet3}{tweet4}{prompt}"
82
- embed.add_field(
83
- name="Twitter",
84
- value=f"[Share it!]({intent_link})",
85
- inline=True,
86
- )
87
-
88
- await thread.send(embed=embed)
89
-
90
  except Exception as e:
91
  print(f"music_create Error: {e}")
 
71
  discord_audio_file = discord.File(file, filename=audio_filename)
72
  await thread.send(file=discord_audio_file)
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  except Exception as e:
75
  print(f"music_create Error: {e}")