Spaces:
Sleeping
Sleeping
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
import requests
|
| 4 |
|
| 5 |
# Replace this with your actual model URL (must be PUBLIC!)
|
| 6 |
-
MODEL_URL = "https://api-inference.huggingface.co/models/
|
| 7 |
|
| 8 |
def generate_text(prompt, max_tokens=250, temperature=0.7, top_p=0.95, top_k=50, repetition_penalty=1.2, trim_output=False):
|
| 9 |
payload = {
|
|
|
|
| 3 |
import requests
|
| 4 |
|
| 5 |
# Replace this with your actual model URL (must be PUBLIC!)
|
| 6 |
+
MODEL_URL = "https://api-inference.huggingface.co/models/CLASSIFIED-HEX/X"
|
| 7 |
|
| 8 |
def generate_text(prompt, max_tokens=250, temperature=0.7, top_p=0.95, top_k=50, repetition_penalty=1.2, trim_output=False):
|
| 9 |
payload = {
|