Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
import requests
|
| 5 |
|
| 6 |
def greet(payload):
|
| 7 |
-
response = requests.post("https://api-inference.huggingface.co/models/
|
| 8 |
return response.json()
|
| 9 |
super().load(name=PoseyATX/FoxHunter, src=huggingface, api_key=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, alias=FoxHunter, **kwargs)
|
| 10 |
output = greet({
|
|
|
|
| 4 |
import requests
|
| 5 |
|
| 6 |
def greet(payload):
|
| 7 |
+
response = requests.post("https://api-inference.huggingface.co/models/PoseyATX/GPTxLege_FoxHunter", headers={"Authorization": "Bearer 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"}, json=payload)
|
| 8 |
return response.json()
|
| 9 |
super().load(name=PoseyATX/FoxHunter, src=huggingface, api_key=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, alias=FoxHunter, **kwargs)
|
| 10 |
output = greet({
|