Spaces:
Running
Running
shikharyashmaurya
commited on
Commit
•
0a20eb1
1
Parent(s):
33cb1d5
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,12 @@ def get_gemini_response(input,image):
|
|
13 |
Your work is to write a prompt such that an image generator model would create most identical picture
|
14 |
as the image given to you'''
|
15 |
response = model.generate_content([input,image])
|
|
|
16 |
new_input=''
|
17 |
new_input='''You are a prompt generator.You will get an image.
|
18 |
Your work is to write a prompt such that an image generator model would create most identical picture
|
19 |
as the image given to you and the extra feature provide that you mant in image are as follows '''+input
|
20 |
-
|
21 |
-
response = model.generate_content([new_input,image])
|
22 |
return response.text
|
23 |
|
24 |
st.set_page_config(page_title="Prompt generation from image")
|
|
|
13 |
Your work is to write a prompt such that an image generator model would create most identical picture
|
14 |
as the image given to you'''
|
15 |
response = model.generate_content([input,image])
|
16 |
+
else:
|
17 |
new_input=''
|
18 |
new_input='''You are a prompt generator.You will get an image.
|
19 |
Your work is to write a prompt such that an image generator model would create most identical picture
|
20 |
as the image given to you and the extra feature provide that you mant in image are as follows '''+input
|
21 |
+
response = model.generate_content([new_input,image])
|
|
|
22 |
return response.text
|
23 |
|
24 |
st.set_page_config(page_title="Prompt generation from image")
|