Spaces:
Runtime error
Runtime error
Commit
·
741b13f
1
Parent(s):
fbe55a3
Update readme and sdk
Browse files
README.md
CHANGED
|
@@ -4,10 +4,37 @@ emoji: 📚
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
---
|
|
|
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.15.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
+
# Run on a space
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 15 |
+
|
| 16 |
+
Simply push your code on a huggingface space.
|
| 17 |
+
|
| 18 |
+
# Run locally
|
| 19 |
+
|
| 20 |
+
You must have python (3.8)[https://www.python.org/downloads/].
|
| 21 |
+
|
| 22 |
+
Check https://www.gradio.app/guides/quickstart for more details about Gradio.
|
| 23 |
+
|
| 24 |
+
## Install dependencies
|
| 25 |
+
|
| 26 |
+
`pip install gradio`
|
| 27 |
+
|
| 28 |
+
`pip install -r requirements.txt`
|
| 29 |
+
|
| 30 |
+
## Add Mistral API Key to your environement variables
|
| 31 |
+
|
| 32 |
+
in `~/.profile` or `~/.bashrc`
|
| 33 |
+
|
| 34 |
+
`export MISTRAL_API_KEY=YOUR_API_KEY`
|
| 35 |
+
|
| 36 |
+
## Run your code
|
| 37 |
+
|
| 38 |
+
`python3 app.py`
|
| 39 |
+
|
| 40 |
+
## Open your browser to `http://127.0.0.1:7860`
|