Kvikontent commited on
Commit
f8d5c9f
·
verified ·
1 Parent(s): 728084b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -52
app.py CHANGED
@@ -29,30 +29,13 @@ def generate_image(prompt):
29
  if search_btn:
30
  prompt1 = prompt + ". Give short answer to this question"
31
  prompt2 = prompt + ". Give short funny answer to this question"
32
- '''prompt3 = prompt + ". Give short documental answer to this question"
33
- prompt4 = prompt + ". Give short natural language answer to this question"
34
- prompt5 = prompt + ". Give short correct answer to this question"
35
- prompt6 = prompt + ". Give short fast answer to this question"'''
36
 
37
  result1 = Client.create_completion("gpt3", prompt1)
38
  result2 = Client.create_completion("gpt3", prompt2)
39
- '''result3 = Client.create_completion("gpt3", prompt3)
40
- result4 = Client.create_completion("gpt3", prompt4)
41
- result5 = Client.create_completion("gpt3", prompt5)
42
- result6 = Client.create_completion("gpt3", prompt6)'''
43
 
44
  imageresult1 = generate_image(prompt + ". Create image of this in realistic style")
45
  imageresult2 = generate_image(prompt + ". Create image of this in anime style")
46
  imageresult3 = generate_image(prompt + ". Create image of this in black and white style")
47
- '''imageresult4 = generate_image(prompt + ". Create image of this in photo style")
48
- imageresult5 = generate_image(prompt + ". Create image of this in style of iphone low quality photo")
49
- imageresult6 = generate_image(prompt + ". Create image of this in cinemtic style")
50
- imageresult7 = generate_image(prompt + ". Create image of this in unreal engine style")
51
- imageresult8 = generate_image(prompt + ". Create image of this in google style")
52
- imageresult9 = generate_image(prompt + ". Create image of this in russia style")
53
- imageresult10 = generate_image(prompt + ". Create image of this in chinese style")
54
- imageresult11 = generate_image(prompt + ". Create image of this in style of sumsung low quality photo")
55
- imageresult12 = generate_image(prompt + ". Create image of this in romantic style")'''
56
 
57
  with texts:
58
  st.write("We found these results on your query: ")
@@ -62,48 +45,14 @@ if search_btn:
62
  st.caption("reppit.com")
63
  st.header(result2.split()[0], divider='rainbow')
64
  st.text(result2)
65
- '''st.caption("llama-answers.net")
66
- st.header(result3.split()[0], divider='rainbow')
67
- st.text(result3)
68
- st.caption("reply-answers.com")
69
- st.header(result4.split()[0], divider='rainbow')
70
- st.text(result4)
71
- st.caption("grow.org")
72
- st.header(result5.split()[0], divider='rainbow')
73
- st.text(result5)
74
- st.caption("pedropedia.com")
75
- st.header(result6.split()[0], divider='rainbow')
76
- st.text(result6)'''
77
  st.caption("That's the end!")
78
 
79
  with images:
80
  im1, im2, im3 = st.column(3)
81
- '''im4, im5, im6 = st.column(3)
82
- im9, im8, im7 = st.column(3)
83
- im10, im11, im12 = st.column(3)'''
84
-
85
  st.write("We found some images on your query: ")
86
  with im1:
87
  st.image(imageresult1)
88
  with im2:
89
  st.image(imageresult2)
90
  with im3:
91
- st.image(imageresult3)
92
- '''with im4:
93
- st.image(imageresult4)
94
- with im5:
95
- st.image(imageresult5)
96
- with im6:
97
- st.image(imageresult6)
98
- with im7:
99
- st.image(imageresult7)
100
- with im8:
101
- st.image(imageresult8)
102
- with im9:
103
- st.image(imageresult9)
104
- with im10:
105
- st.image(imageresult10)
106
- with im11:
107
- st.image(imageresult11)
108
- with im12:
109
- st.image(imageresult12)'''
 
29
  if search_btn:
30
  prompt1 = prompt + ". Give short answer to this question"
31
  prompt2 = prompt + ". Give short funny answer to this question"
 
 
 
 
32
 
33
  result1 = Client.create_completion("gpt3", prompt1)
34
  result2 = Client.create_completion("gpt3", prompt2)
 
 
 
 
35
 
36
  imageresult1 = generate_image(prompt + ". Create image of this in realistic style")
37
  imageresult2 = generate_image(prompt + ". Create image of this in anime style")
38
  imageresult3 = generate_image(prompt + ". Create image of this in black and white style")
 
 
 
 
 
 
 
 
 
39
 
40
  with texts:
41
  st.write("We found these results on your query: ")
 
45
  st.caption("reppit.com")
46
  st.header(result2.split()[0], divider='rainbow')
47
  st.text(result2)
 
 
 
 
 
 
 
 
 
 
 
 
48
  st.caption("That's the end!")
49
 
50
  with images:
51
  im1, im2, im3 = st.column(3)
 
 
 
 
52
  st.write("We found some images on your query: ")
53
  with im1:
54
  st.image(imageresult1)
55
  with im2:
56
  st.image(imageresult2)
57
  with im3:
58
+ st.image(imageresult3)