from image import * | |
from language import * | |
from translation import * | |
import streamlit as st | |
import os | |
# url = "https://i.imgur.com/qs0CxjE_d.webp?maxwidth=760&fidelity=grand" | |
# text = "How many cars are here?" | |
st.write('Part 1') | |
question_fr = st.text_input('Posez votre question') | |
url = st.text_input('mettez le liens de votre image') | |
if st.button('générer'): | |
question_en = frenchtoenglish(question_fr) | |
responseBase = image(url, question_en) | |
st.write('response is :', responseBase) | |
st.write('Part 2') | |
longResponseEn = longText(responseBase, question_en) | |
st.write(englishtofrench(longResponseEn)) | |
print("####TEST TTS####") |