Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,14 +71,14 @@ def inference(audio, state=""):
|
|
71 |
model="text-ada-001",
|
72 |
prompt=text,
|
73 |
temperature=1,
|
74 |
-
max_tokens=
|
75 |
-
n=
|
76 |
infers =[]
|
77 |
-
for i in range(
|
78 |
-
print(response['choices'][i]['text'])
|
79 |
infers += response['choices'][i]['text']
|
80 |
-
print("infers", infers)
|
81 |
-
print("Responses ", response)
|
82 |
|
83 |
|
84 |
# result.text
|
|
|
71 |
model="text-ada-001",
|
72 |
prompt=text,
|
73 |
temperature=1,
|
74 |
+
max_tokens=6,
|
75 |
+
n=5)
|
76 |
infers =[]
|
77 |
+
for i in range(5):
|
78 |
+
print("print1 ", response['choices'][i]['text'])
|
79 |
infers += response['choices'][i]['text']
|
80 |
+
print("print2: infers ", infers)
|
81 |
+
print("print3: Responses ", response)
|
82 |
|
83 |
|
84 |
# result.text
|