Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,9 @@ import gradio as gr
|
|
| 2 |
import json
|
| 3 |
import requests
|
| 4 |
headers = {"Authorization": f"Bearer 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"}
|
| 5 |
-
API_URL = "https://api-inference.huggingface.co/models/facebook/bart-large-mnli"
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def query(payload):
|
| 8 |
#data = json.dumps(payload)
|
|
|
|
| 2 |
import json
|
| 3 |
import requests
|
| 4 |
headers = {"Authorization": f"Bearer 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"}
|
| 5 |
+
#API_URL = "https://api-inference.huggingface.co/models/facebook/bart-large-mnli"
|
| 6 |
+
API_URL = "https://api-inference.huggingface.co/models/microsoft/DialoGPT-large"
|
| 7 |
+
|
| 8 |
|
| 9 |
def query(payload):
|
| 10 |
#data = json.dumps(payload)
|