File size: 3,780 Bytes
85f0583 339e7ba 85f0583 2d80f81 85f0583 eb6384d 85f0583 eb6384d 85f0583 6a1baa6 85f0583 5911049 65fdf64 5911049 85f0583 7b89433 85f0583 50ec2be 85f0583 50ec2be 85f0583 fc203fd 85f0583 d3073fa 9f66d65 1907d8c d3073fa 1907d8c 9f66d65 2d80f81 9f66d65 8fc1362 fc203fd b058115 85f0583 5911049 eaf8933 9f66d65 64420f9 |
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
import gradio as gr
from ff import *
title = "Mariam 💎"
description = """" Banana Banana ? 👀 bon ok ok. Bref comme vous le voyez c'est simple ! Pas besoin d'explication. C'est un script simple, c'est basé sur néoX, python, et gradio.
Mon numéro : +24165362371"""
title_c = "Calculateur de moyenne !"
description_c = """Entrez vos notes pour chaque matière pour calculer votre moyenne.
Note : les coefficients de cette app sont adaptés à la classe de première S uniquement. Je ferais une mise à jour plus tard si j'ai le temps.
la conduite est fixé à 14/20.
Et ici la virgule s'écrit avec le point.
Exemple : 12,5 devient 12.5
Contact : +241065362371"""
description_hist = """" C'est comme tu vois là. avant de cliquer sur soumettre precise les differents points que tu veux aborder.
exemple :
p1 = Cause
p2 = manifestation
p3 = resolution
"""
description_ocr = (
""" ici c'est juste pour extraire le texte d'une image... juste ça..."""
)
title_f = "Travail argumentative"
description_french = " Esseu je dois encore expliquer ?"
# app 1
# interface 1
app1 = gr.Interface(
fn=infer,
title="Mariam -Ocr ",
description=description_ocr,
inputs=[gr.Image(type="pil")],
outputs=["text"],
)
# interface 2
app2 = gr.Interface(
fn=gpt,
title="Mariam-U",
description=description,
inputs=gr.Textbox(label="Question:", lines=4),
outputs=gr.Textbox(),
)
# interface3
app3 = gr.Interface(
fn=gpt_francais,
title="Mariam-French",
description=description_french,
inputs=[gr.Textbox(label="Sujet:", lines=3),gr.Radio(["Etaye","refute"]),gr.Radio(["Victor Hugo","Marcel Proust","Albert Camus","Marguerite Duras","Gustave Flaubert","Prof"],label="Style d'ecriture")],
outputs=gr.Textbox(),
)
app9 = gr.Interface(
fn=philo_cc,
title="Mariam-Philo-Cc",
description=description_french,
inputs=[gr.Textbox(label="Sujet:", lines=3)],
outputs=gr.Textbox(), )
# interface4
app4 = gr.Interface(
fn=gpt_philo,
title="Mariam-Philo",
description="Ah..banana banana...",
inputs=[gr.Textbox(label="Sujet:", lines=3),gr.Radio(["Prof","René Descartes","Voltaire","Jean-Jacques Rousseau","Michel de Montaigne","Albert Camus"],label="Style d'ecriture")],
outputs=gr.Textbox(),
)
#interface6
app6 = gr.Interface(
fn=gpt_hist,
title="Mariam-Hist",
description=description_hist,
inputs=[gr.Textbox(label="Sujet:", lines=2),gr.Textbox(label="point1:", lines=1),
gr.Textbox(label="point2:", lines=1),
gr.Textbox(label="point3:", lines=1)
],
outputs=gr.Textbox(),
)
"""
#interface7
app7= gr.Interface(
fn=search,
title="Mariam-theatre",
description=description_thea,
inputs=[gr.Textbox(label="Label:", lines=4)
],
outputs=gr.Textbox(),
)
"""
# interface5
app5 = gr.Interface(
fn=calcul,
inputs=[
gr.Number(label="Math"),
gr.Number(label="Français"),
gr.Number(label="Physique"),
gr.Number(label="SVT"),
gr.Number(label="Philo"),
gr.Number(label="EPS"),
gr.Number(label="Théâtre"),
gr.Number(label="Histoire"),
gr.Number(label="Anglais"),
],
outputs=gr.Textbox(label="Moyenne"),
description=description_c,
)
app7 = gr.Interface(
fn=mariam_web,
title="Mariam-web",
inputs=gr.Textbox(label="Question:", lines=4),
outputs=gr.Textbox(),
)
app8 = gr.Interface(
fn = mariam_chimi,
title="Mariam-chimi",
inputs=[gr.Textbox(),gr.File()],
outputs=gr.Textbox(),
)
demo = gr.TabbedInterface([app1, app2, app3,app9,app4,app6,app5,app7,app8],["OCR", "MARIAM-u", "Mariam-French","Mariam-Philo-Cc", "Mariam-Philo","Mariam-Hist","Note Calc","Mariam_web", "Mariam-chimi"])
demo.launch() |