Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ theme = gr.themes.Monochrome(
|
|
29 |
|
30 |
def generate(instruction):
|
31 |
response = resp = llm(ins.format(instruction))
|
|
|
32 |
result = ""
|
33 |
for word in response.split(" "):
|
34 |
result += word + " "
|
|
|
29 |
|
30 |
def generate(instruction):
|
31 |
response = resp = llm(ins.format(instruction))
|
32 |
+
response = response['choices'][0]['text']
|
33 |
result = ""
|
34 |
for word in response.split(" "):
|
35 |
result += word + " "
|