Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -555,6 +555,8 @@ def respond(
|
|
| 555 |
temperature = max(0.0, min(2.0, float(temperature)))
|
| 556 |
top_p = max(0.0, min(1.0, float(top_p)))
|
| 557 |
|
|
|
|
|
|
|
| 558 |
# System mesajına mahalle karşılaştırma bağlamını ekle
|
| 559 |
full_system = system_message
|
| 560 |
if compare_context:
|
|
|
|
| 555 |
temperature = max(0.0, min(2.0, float(temperature)))
|
| 556 |
top_p = max(0.0, min(1.0, float(top_p)))
|
| 557 |
|
| 558 |
+
client = InferenceClient(model=model_name, token=HF_TOKEN if HF_TOKEN else None)
|
| 559 |
+
|
| 560 |
# System mesajına mahalle karşılaştırma bağlamını ekle
|
| 561 |
full_system = system_message
|
| 562 |
if compare_context:
|