Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,30 +88,23 @@ css = """
|
|
| 88 |
|
| 89 |
app1 = gr.Interface(
|
| 90 |
fn=gpt_francais,
|
| 91 |
-
title="Mariam-
|
| 92 |
description=description_french,
|
| 93 |
inputs=[gr.Textbox(label="Sujet:", lines=3),gr.Radio(["Etaye","refute"]),gr.Radio(["raffiné","Normal"],label="Style d'ecriture")],
|
| 94 |
outputs=gr.Markdown(markdown, latex_delimiters=[{ "left":"$$", "right":"$$", "display": True }]))
|
| 95 |
|
| 96 |
-
|
| 97 |
app2 = gr.Interface(
|
| 98 |
fn=gpt_francais_cc,
|
| 99 |
-
title="Mariam
|
| 100 |
description="Ah..banana banana...",
|
| 101 |
inputs= gr.Image(type='pil'),
|
| 102 |
outputs=gr.Markdown(markdown,show_copy_button=True, latex_delimiters=[{ "left":"$$", "right":"$$", "display": True }]),
|
| 103 |
allow_flagging="never",
|
| 104 |
css=css)
|
| 105 |
-
"""
|
| 106 |
-
app2 = gr.Interface(
|
| 107 |
-
fn=gpt_francais_cc,
|
| 108 |
-
title="Mariam-Commentaire",
|
| 109 |
-
description="Ah..banana banana...",
|
| 110 |
-
inputs= gr.Image(type='pil'),
|
| 111 |
-
outputs=gr.DownloadButton("yo",value="rr.txt") )
|
| 112 |
-
|
| 113 |
|
| 114 |
-
|
|
|
|
| 115 |
|
| 116 |
|
| 117 |
iface.launch()
|
|
|
|
| 88 |
|
| 89 |
app1 = gr.Interface(
|
| 90 |
fn=gpt_francais,
|
| 91 |
+
title="Mariam-TA",
|
| 92 |
description=description_french,
|
| 93 |
inputs=[gr.Textbox(label="Sujet:", lines=3),gr.Radio(["Etaye","refute"]),gr.Radio(["raffiné","Normal"],label="Style d'ecriture")],
|
| 94 |
outputs=gr.Markdown(markdown, latex_delimiters=[{ "left":"$$", "right":"$$", "display": True }]))
|
| 95 |
|
| 96 |
+
|
| 97 |
app2 = gr.Interface(
|
| 98 |
fn=gpt_francais_cc,
|
| 99 |
+
title="Mariam | Etude de texte",
|
| 100 |
description="Ah..banana banana...",
|
| 101 |
inputs= gr.Image(type='pil'),
|
| 102 |
outputs=gr.Markdown(markdown,show_copy_button=True, latex_delimiters=[{ "left":"$$", "right":"$$", "display": True }]),
|
| 103 |
allow_flagging="never",
|
| 104 |
css=css)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
+
|
| 107 |
+
iface = gr.TabbedInterface([app1,app2],["Français TA", "Étude de texte"])
|
| 108 |
|
| 109 |
|
| 110 |
iface.launch()
|