Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
|
|
|
|
|
|
| 4 |
# Initialize the Hugging Face model client
|
| 5 |
-
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta") # Change to your preferred model
|
| 6 |
|
| 7 |
# Map descriptive length to token count
|
| 8 |
length_map = {
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
|
| 5 |
+
|
| 6 |
# Initialize the Hugging Face model client
|
| 7 |
+
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta", token=HF_TOKEN_GEEKS) # Change to your preferred model
|
| 8 |
|
| 9 |
# Map descriptive length to token count
|
| 10 |
length_map = {
|