Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ async def get_completion(event, user_id, prompt):
|
|
171 |
)
|
172 |
message = ""
|
173 |
bot_message = await event.respond('♥')
|
174 |
-
|
175 |
if chunk.choices[0].delta.content is not None:
|
176 |
message += chunk.choices[0].delta.content
|
177 |
await bot_message.edit(message)
|
@@ -228,7 +228,7 @@ def launch_gradio():
|
|
228 |
- Scarlett is a girl residing in Telegram
|
229 |
- She can chat with you without any censorship.
|
230 |
- Head over to https://t.me/Scarlett_Rogue_isNotBot
|
231 |
-
|
232 |
- Thanks to https://glhf.chat for powering this!
|
233 |
"""
|
234 |
with gr.Blocks() as demo:
|
|
|
171 |
)
|
172 |
message = ""
|
173 |
bot_message = await event.respond('♥')
|
174 |
+
for chunk in completion:
|
175 |
if chunk.choices[0].delta.content is not None:
|
176 |
message += chunk.choices[0].delta.content
|
177 |
await bot_message.edit(message)
|
|
|
228 |
- Scarlett is a girl residing in Telegram
|
229 |
- She can chat with you without any censorship.
|
230 |
- Head over to https://t.me/Scarlett_Rogue_isNotBot
|
231 |
+
|
232 |
- Thanks to https://glhf.chat for powering this!
|
233 |
"""
|
234 |
with gr.Blocks() as demo:
|