shweaung commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,12 +10,12 @@ def get_gemini_response(image):
|
|
| 10 |
model = genai.GenerativeModel('gemini-1.5-flash')
|
| 11 |
input='''You are a prompt generator.You will get an image.
|
| 12 |
Your work is to write a prompt such that an image generator model would create most identical picture
|
| 13 |
-
as the image given to you'''
|
| 14 |
response = model.generate_content([input,image])
|
| 15 |
return response.text
|
| 16 |
|
| 17 |
st.set_page_config(page_title="Prompt generation from image")
|
| 18 |
-
st.header("
|
| 19 |
|
| 20 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
|
| 21 |
|
|
|
|
| 10 |
model = genai.GenerativeModel('gemini-1.5-flash')
|
| 11 |
input='''You are a prompt generator.You will get an image.
|
| 12 |
Your work is to write a prompt such that an image generator model would create most identical picture
|
| 13 |
+
as the image given to you.You must generate prompt with English and Myanmar language.'''
|
| 14 |
response = model.generate_content([input,image])
|
| 15 |
return response.text
|
| 16 |
|
| 17 |
st.set_page_config(page_title="Prompt generation from image")
|
| 18 |
+
st.header("Walone Prompt Generator")
|
| 19 |
|
| 20 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
|
| 21 |
|