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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -29,22 +29,22 @@ 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")
@@ -52,7 +52,7 @@ if search_btn:
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,7 +62,7 @@ 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")
@@ -73,14 +73,14 @@ if search_btn:
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:
@@ -89,7 +89,7 @@ if search_btn:
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)
@@ -106,4 +106,4 @@ if search_btn:
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
+ '''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")
 
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
  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")
 
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:
 
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)
 
106
  with im11:
107
  st.image(imageresult11)
108
  with im12:
109
+ st.image(imageresult12)'''