subhrajit mohanty
commited on
Commit
·
4fbb5b8
1
Parent(s):
af91e11
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def get_openai_generator(prompt: str):
|
|
62 |
for event in openai_stream:
|
63 |
if "content" in event["choices"][0].delta:
|
64 |
current_response = event["choices"][0].delta.content
|
65 |
-
yield
|
66 |
|
67 |
@app.get("/")
|
68 |
async def base_url():
|
|
|
62 |
for event in openai_stream:
|
63 |
if "content" in event["choices"][0].delta:
|
64 |
current_response = event["choices"][0].delta.content
|
65 |
+
yield current_response
|
66 |
|
67 |
@app.get("/")
|
68 |
async def base_url():
|