|
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') |
|
question = frenchtoenglish(question) |
|
url = st.text_input('mettez le liens de votre image') |
|
|
|
if st.button('générer'): |
|
responseBase = image(url, question) |
|
responseBase = englishtofrench(responseBase) |
|
st.write('response is :', responseBase) |
|
|
|
st.write('Part 2') |
|
st.write(longText(responseBase, question)) |
|
|
|
print("####TEST TTS####") |
|
os.system("text-to-speach.py") |