Spaces:
Runtime error
Runtime error
Update app.py (#3)
Browse files- Update app.py (565e0ea6a64bcd418370e82c8fc1a90eacb90a78)
Co-authored-by: yoinked <yoinked@users.noreply.huggingface.co>
app.py
CHANGED
|
@@ -195,7 +195,7 @@ def generate(
|
|
| 195 |
|
| 196 |
def genwrap(*args, **kwargs):
|
| 197 |
ipth, mtd = generate(*args, **kwargs)
|
| 198 |
-
r = GRAD_CLIENT.predict(
|
| 199 |
ratings = val[0]
|
| 200 |
rating = rating['confidences']
|
| 201 |
highestval, classtype = -1, "aa"
|
|
|
|
| 195 |
|
| 196 |
def genwrap(*args, **kwargs):
|
| 197 |
ipth, mtd = generate(*args, **kwargs)
|
| 198 |
+
r = GRAD_CLIENT.predict(grcl.file(ipth), "chen-evangelion", 0.4, False, False, api_name="/classify")
|
| 199 |
ratings = val[0]
|
| 200 |
rating = rating['confidences']
|
| 201 |
highestval, classtype = -1, "aa"
|