Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,12 @@ import json
|
|
| 10 |
HF_TOKEN = os.getenv("tomoniaccess")
|
| 11 |
current_model = "HuggingFaceH4/zephyr-7b-beta"
|
| 12 |
|
| 13 |
-
# Lösung
|
| 14 |
-
client = InferenceClient(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
conversation_history = []
|
| 17 |
|
|
|
|
| 10 |
HF_TOKEN = os.getenv("tomoniaccess")
|
| 11 |
current_model = "HuggingFaceH4/zephyr-7b-beta"
|
| 12 |
|
| 13 |
+
# Lösung: Verwende einen spezifischen unterstützten Provider
|
| 14 |
+
client = InferenceClient(
|
| 15 |
+
model=current_model,
|
| 16 |
+
token=HF_TOKEN,
|
| 17 |
+
provider="hf-inference" # Explizit HuggingFace Inference verwenden
|
| 18 |
+
)
|
| 19 |
|
| 20 |
conversation_history = []
|
| 21 |
|