Skip to content
Snippets Groups Projects
Commit f564e645 authored by Petit Victor's avatar Petit Victor
Browse files

plus de tests, commentaires, essai d'essayer de faire une interface

parent e98968aa
No related branches found
No related tags found
No related merge requests found
import tkinter as tk
import tkinter
import visual_recognition_challenge.classify_image as ci
def main(_):
top = tkinter.Tk()
# Code to add widgets will go here...
texte = tk.Label(top, text='Entrez un mot clé puis appuyez sur Valider')
texte.pack()
zone_texte = tk.Entry(top)
zone_texte.pack()
def valider():
mot_cle = zone_texte.get()
bordel = ci.api_final(mot_cle)
print(bordel)
bouton_entree = tk.Button(top, text="Valider", command=valider)
bouton_entree.pack()
top.mainloop()
\ No newline at end of file
......@@ -67,7 +67,7 @@ def test_collect_text_mots():
texte_tweet = tti.collect_text_mots("voici_un_autre_mot", "azertyuiop")
assert texte_tweet == "voici_un_autre_mot pomme azertyuiop"
#jej
......
......@@ -123,3 +123,5 @@ def load_requests(source_url, sink_path):
with open(sink_path, 'wb') as f:
for chunk in r:
f.write(chunk)
# je rajoute qqc pour pouvoir commit
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment