Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1", token=os.getenv("
|
| 6 |
|
| 7 |
def respond(
|
| 8 |
message,
|
|
@@ -52,5 +52,5 @@ demo = gr.ChatInterface(
|
|
| 52 |
],
|
| 53 |
)
|
| 54 |
|
| 55 |
-
if
|
| 56 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from huggingfacehub import InferenceClient
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1", token=os.getenv("HFTOKEN"))
|
| 6 |
|
| 7 |
def respond(
|
| 8 |
message,
|
|
|
|
| 52 |
],
|
| 53 |
)
|
| 54 |
|
| 55 |
+
if __name == "__main":
|
| 56 |
demo.launch()
|