Devticks commited on
Commit
12864d0
·
verified ·
1 Parent(s): 1ca6f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -1,5 +1,5 @@
1
  # from flask import Flask, request, jsonify
2
- # from handler import EndpointHandler
3
 
4
  # app = Flask(__name__)
5
  # handler = EndpointHandler()
@@ -57,15 +57,18 @@ if image is not None:
57
  with st.spinner("🤖 AI is at Work! "):
58
 
59
 
60
- result = reader.readtext(np.array(input_image))
 
 
 
61
 
62
- result_text = [] #empty list for results
63
 
64
 
65
- for text in result:
66
- result_text.append(text[1])
67
 
68
- st.write(result_text)
69
  #st.success("Here you go!")
70
  st.balloons()
71
  else:
 
1
  # from flask import Flask, request, jsonify
2
+ from handler import EndpointHandler
3
 
4
  # app = Flask(__name__)
5
  # handler = EndpointHandler()
 
57
  with st.spinner("🤖 AI is at Work! "):
58
 
59
 
60
+ # result = reader.readtext(np.array(input_image))
61
+ images = pipe(prompt, image=image, num_inference_steps=10, image_guidance_scale=1).images
62
+ images[0].show()
63
+
64
 
65
+ # result_text = [] #empty list for results
66
 
67
 
68
+ # for text in result:
69
+ # result_text.append(text[1])
70
 
71
+ # st.write(result_text)
72
  #st.success("Here you go!")
73
  st.balloons()
74
  else: