Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def chat(id, npc, prompt):
|
|
37 |
id,
|
38 |
]}).json()
|
39 |
|
40 |
-
coin = response["data"]
|
41 |
if int(coin) == 0:
|
42 |
return "no coin"
|
43 |
|
@@ -53,7 +53,7 @@ def chat(id, npc, prompt):
|
|
53 |
{"prompt":prompt, "output":output}
|
54 |
]}).json()
|
55 |
|
56 |
-
d = response["data"]
|
57 |
|
58 |
return output
|
59 |
|
|
|
37 |
id,
|
38 |
]}).json()
|
39 |
|
40 |
+
coin = response["data"][0]
|
41 |
if int(coin) == 0:
|
42 |
return "no coin"
|
43 |
|
|
|
53 |
{"prompt":prompt, "output":output}
|
54 |
]}).json()
|
55 |
|
56 |
+
d = response["data"][0]
|
57 |
|
58 |
return output
|
59 |
|