Spaces:
Runtime error
Runtime error
TenPoisk
commited on
Commit
·
2dd0c90
1
Parent(s):
4af74a7
Update discord_bot.py
Browse files- discord_bot.py +2 -2
discord_bot.py
CHANGED
|
@@ -17,7 +17,7 @@ class MyClient(discord.Client):
|
|
| 17 |
super().__init__()
|
| 18 |
self.api_endpoint = API_URL + model_name
|
| 19 |
# retrieve the secret API token from the system environment
|
| 20 |
-
huggingface_token = os.environ['
|
| 21 |
# format the header in our request to Hugging Face
|
| 22 |
self.request_headers = {
|
| 23 |
'Authorization': 'Bearer {}'.format(huggingface_token)
|
|
@@ -76,7 +76,7 @@ class MyClient(discord.Client):
|
|
| 76 |
def main():
|
| 77 |
# DialoGPT-medium-joshua is my model name
|
| 78 |
client = MyClient('DialoGPT-medium-joshua')
|
| 79 |
-
client.run(os.environ['
|
| 80 |
|
| 81 |
if __name__ == '__main__':
|
| 82 |
main()
|
|
|
|
| 17 |
super().__init__()
|
| 18 |
self.api_endpoint = API_URL + model_name
|
| 19 |
# retrieve the secret API token from the system environment
|
| 20 |
+
huggingface_token = os.environ['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']
|
| 21 |
# format the header in our request to Hugging Face
|
| 22 |
self.request_headers = {
|
| 23 |
'Authorization': 'Bearer {}'.format(huggingface_token)
|
|
|
|
| 76 |
def main():
|
| 77 |
# DialoGPT-medium-joshua is my model name
|
| 78 |
client = MyClient('DialoGPT-medium-joshua')
|
| 79 |
+
client.run(os.environ['MTEzNDc5NjcwMTIwNzYyOTg5NA.Ge6bnp.jHStqt72lbFrDiOV8vCzS7oDyJ0JKjuL_OdsVY'])
|
| 80 |
|
| 81 |
if __name__ == '__main__':
|
| 82 |
main()
|