Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
import gradio as gr
|
| 3 |
from huggingfacehub import InferenceClient
|
| 4 |
import os
|
|
@@ -8,8 +7,8 @@ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1", token=os.getenv
|
|
| 8 |
def respond(
|
| 9 |
message,
|
| 10 |
history: list[tuple[str, str]],
|
| 11 |
-
|
| 12 |
-
|
| 13 |
temperature,
|
| 14 |
top_p,
|
| 15 |
):
|
|
@@ -53,5 +52,5 @@ demo = gr.ChatInterface(
|
|
| 53 |
],
|
| 54 |
)
|
| 55 |
|
| 56 |
-
if
|
| 57 |
demo.launch()
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingfacehub import InferenceClient
|
| 3 |
import os
|
|
|
|
| 7 |
def respond(
|
| 8 |
message,
|
| 9 |
history: list[tuple[str, str]],
|
| 10 |
+
system_message,
|
| 11 |
+
max_tokens,
|
| 12 |
temperature,
|
| 13 |
top_p,
|
| 14 |
):
|
|
|
|
| 52 |
],
|
| 53 |
)
|
| 54 |
|
| 55 |
+
if __name__ == "__main__":
|
| 56 |
demo.launch()
|