rgres commited on
Commit
143eb0d
·
1 Parent(s): 9a6a32a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -41,8 +41,10 @@ def predict():
41
 
42
  b64meta, b64_data = base64Image.split(',')
43
 
 
 
44
  result = client.predict(
45
- b64_data, prompt, steps, seed, fn_index=0
46
  )
47
 
48
  return b64meta + ',' + encode_image_to_base64(result)
 
41
 
42
  b64meta, b64_data = base64Image.split(',')
43
 
44
+ image_path = save_base64_image(b64_data)
45
+
46
  result = client.predict(
47
+ image_path, prompt, steps, seed, fn_index=0
48
  )
49
 
50
  return b64meta + ',' + encode_image_to_base64(result)