Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,9 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
8 |
@spaces.GPU
|
9 |
|
10 |
|
11 |
-
|
|
|
|
|
12 |
|
13 |
def respond(
|
14 |
message,
|
@@ -64,7 +66,6 @@ demo = gr.ChatInterface(
|
|
64 |
|
65 |
),
|
66 |
],
|
67 |
-
additional_outputs=[gr.outputs.Textbox(show_copy_button=True)] # Ajout de l'option pour afficher le bouton de copie dans la sortie
|
68 |
|
69 |
)
|
70 |
|
|
|
8 |
@spaces.GPU
|
9 |
|
10 |
|
11 |
+
def predict(show_copy_button) -> list[list[str | tuple[str] | tuple[str, str] | None] | tuple] | None
|
12 |
+
value show_copy_button = True
|
13 |
+
return value
|
14 |
|
15 |
def respond(
|
16 |
message,
|
|
|
66 |
|
67 |
),
|
68 |
],
|
|
|
69 |
|
70 |
)
|
71 |
|