|
from image import * |
|
from language import * |
|
from translation import * |
|
import streamlit as st |
|
import os |
|
|
|
|
|
|
|
|
|
|
|
st.write('Part 1') |
|
|
|
question = st.text_input('Posez votre question') |
|
url = st.text_input('mettez le liens de votre image') |
|
if url : |
|
st.image(url) |
|
|
|
|
|
if st.button('générer'): |
|
question = frenchtoenglish(question) |
|
responseBase = image(url, question) |
|
st.write('response is :', responseBase) |
|
|
|
st.write('Part 2') |
|
enResponse = longText(responseBase, question) |
|
frResponse = englishtofrench(enResponse) |
|
st.write('en : ',enResponse) |
|
st.write('fr : ',frResponse) |
|
|
|
st.write('Part 3') |
|
st.write('Next step : TTS') |
|
|
|
|