File size: 660 Bytes
438833d f6b625e e001d2e aa58e2f e001d2e 57b9447 64a6ef4 6672a13 7a74048 aa58e2f ed350f1 f098da2 3be5400 cc6cbbe 438833d 64a6ef4 3be5400 f6b625e e001d2e f6b625e 3be5400 359f6f7 3be5400 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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####") |