jclyo1 commited on
Commit
c2aa8fe
1 Parent(s): bb4cd3c
Files changed (1) hide show
  1. main.py +7 -1
main.py CHANGED
@@ -8,6 +8,7 @@ import json
8
  import uuid
9
  import cgi
10
  import cgitb; cgitb.enable()
 
11
 
12
  import torch
13
  from diffusers import (
@@ -70,8 +71,13 @@ def generate_image(prompt, model):
70
  @app.post("/verify")
71
  def verify_image():
72
  form = cgi.FieldStorage()
 
 
 
73
  fileitem = form['fileUpload']
74
-
 
 
75
  # check if the file has been uploaded
76
  if fileitem.filename:
77
  # strip the leading path from the file name
 
8
  import uuid
9
  import cgi
10
  import cgitb; cgitb.enable()
11
+ import logging
12
 
13
  import torch
14
  from diffusers import (
 
71
  @app.post("/verify")
72
  def verify_image():
73
  form = cgi.FieldStorage()
74
+ logging.debug('form')
75
+ logging.debug(form)
76
+
77
  fileitem = form['fileUpload']
78
+ logging.debug('fileitem')
79
+ logging.debug(fileitem)
80
+
81
  # check if the file has been uploaded
82
  if fileitem.filename:
83
  # strip the leading path from the file name