Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,6 +53,9 @@ async def on_message(message):
|
|
| 53 |
async def try_codellama(ctx, prompt):
|
| 54 |
"""Generates code based on a given prompt"""
|
| 55 |
try:
|
|
|
|
|
|
|
|
|
|
| 56 |
global codellama_threadid_userid_dictionary
|
| 57 |
global codellama_threadid_conversation
|
| 58 |
|
|
@@ -69,9 +72,6 @@ async def try_codellama(ctx, prompt):
|
|
| 69 |
|
| 70 |
def codellama_initial_generation(prompt, thread):
|
| 71 |
"""Job.submit inside of run_in_executor = more consistent bot behavior"""
|
| 72 |
-
if ctx.guild.id == 879548962464493619:
|
| 73 |
-
if ctx.channel.id != 1147210106321256508:
|
| 74 |
-
return
|
| 75 |
global codellama_threadid_conversation
|
| 76 |
|
| 77 |
chat_history = f"{thread.id}.json"
|
|
|
|
| 53 |
async def try_codellama(ctx, prompt):
|
| 54 |
"""Generates code based on a given prompt"""
|
| 55 |
try:
|
| 56 |
+
if ctx.guild.id == 879548962464493619:
|
| 57 |
+
if ctx.channel.id != 1147210106321256508:
|
| 58 |
+
return
|
| 59 |
global codellama_threadid_userid_dictionary
|
| 60 |
global codellama_threadid_conversation
|
| 61 |
|
|
|
|
| 72 |
|
| 73 |
def codellama_initial_generation(prompt, thread):
|
| 74 |
"""Job.submit inside of run_in_executor = more consistent bot behavior"""
|
|
|
|
|
|
|
|
|
|
| 75 |
global codellama_threadid_conversation
|
| 76 |
|
| 77 |
chat_history = f"{thread.id}.json"
|