Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
from huggingface_hub import InferenceClient
|
|
|
|
| 4 |
client = InferenceClient(
|
| 5 |
"mistralai/Mistral-7B-Instruct-v0.2",
|
| 6 |
token=os.getenv("HF_TOKEN") # Взима токена от Secret/Env
|
|
|
|
| 7 |
"""
|
| 8 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 9 |
"""
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
+
|
| 5 |
client = InferenceClient(
|
| 6 |
"mistralai/Mistral-7B-Instruct-v0.2",
|
| 7 |
token=os.getenv("HF_TOKEN") # Взима токена от Secret/Env
|
| 8 |
+
)
|
| 9 |
"""
|
| 10 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 11 |
"""
|