Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -414,7 +414,7 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
414 |
#await thread.send(f'✅running blocking function in executor')
|
415 |
loop = asyncio.get_running_loop()
|
416 |
result = await loop.run_in_executor(None, inference, prompt)
|
417 |
-
await thread.send(f'{ctx.author.mention}after executor')
|
418 |
#await thread.send(f'✅run_in_executor ran successfully')
|
419 |
stage_1_results = result[0]
|
420 |
stage_1_result_path = result[2]
|
@@ -732,4 +732,4 @@ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
732 |
#demo.queue(concurrency_count=10)
|
733 |
demo.queue(concurrency_count=20)
|
734 |
demo.launch()
|
735 |
-
#----------------------------------------------------------------------------------------------------------------------------
|
|
|
414 |
#await thread.send(f'✅running blocking function in executor')
|
415 |
loop = asyncio.get_running_loop()
|
416 |
result = await loop.run_in_executor(None, inference, prompt)
|
417 |
+
#await thread.send(f'{ctx.author.mention}after executor')
|
418 |
#await thread.send(f'✅run_in_executor ran successfully')
|
419 |
stage_1_results = result[0]
|
420 |
stage_1_result_path = result[2]
|
|
|
732 |
#demo.queue(concurrency_count=10)
|
733 |
demo.queue(concurrency_count=20)
|
734 |
demo.launch()
|
735 |
+
#----------------------------------------------------------------------------------------------------------------------------
|