Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def run_gpt(
|
|
| 58 |
repetition_penalty=1.0,
|
| 59 |
do_sample=True,
|
| 60 |
seed=seed,
|
| 61 |
-
)
|
| 62 |
|
| 63 |
|
| 64 |
content = PREFIX.format(
|
|
@@ -75,7 +75,6 @@ def run_gpt(
|
|
| 75 |
resp = ""
|
| 76 |
for response in stream:
|
| 77 |
resp += response.token.text
|
| 78 |
-
yield resp
|
| 79 |
'''
|
| 80 |
resp = openai.ChatCompletion.create(
|
| 81 |
model=MODEL,
|
|
|
|
| 58 |
repetition_penalty=1.0,
|
| 59 |
do_sample=True,
|
| 60 |
seed=seed,
|
| 61 |
+
).strip("\n")
|
| 62 |
|
| 63 |
|
| 64 |
content = PREFIX.format(
|
|
|
|
| 75 |
resp = ""
|
| 76 |
for response in stream:
|
| 77 |
resp += response.token.text
|
|
|
|
| 78 |
'''
|
| 79 |
resp = openai.ChatCompletion.create(
|
| 80 |
model=MODEL,
|