Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,15 +32,15 @@ def process_pdf(prompt):
|
|
32 |
#genai.delete_file(sample_file.name)
|
33 |
return result.text
|
34 |
except Exception as e:
|
35 |
-
return
|
36 |
|
37 |
# Créez l'interface Gradio
|
38 |
iface = gr.Interface(
|
39 |
fn=process_pdf,
|
40 |
-
inputs=gr.Textbox(label="
|
41 |
outputs=gr.Textbox(label="Résultat"),
|
42 |
-
title="
|
43 |
-
description="
|
44 |
)
|
45 |
|
46 |
# Lancez l'application
|
|
|
32 |
#genai.delete_file(sample_file.name)
|
33 |
return result.text
|
34 |
except Exception as e:
|
35 |
+
return "Une erreur s'est produite : "
|
36 |
|
37 |
# Créez l'interface Gradio
|
38 |
iface = gr.Interface(
|
39 |
fn=process_pdf,
|
40 |
+
inputs=gr.Textbox(label="Question", placeholder="Posez une question sur le roman..."),
|
41 |
outputs=gr.Textbox(label="Résultat"),
|
42 |
+
title="Mariam elo la fille du soleil",
|
43 |
+
description=" Triché !!!! On va encore triché haannnn "
|
44 |
)
|
45 |
|
46 |
# Lancez l'application
|