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