Test / app.py
SilvusTV's picture
Changes by madisonowens
2a0deea
raw
history blame
670 Bytes
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 = 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")