Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,3 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
4 |
-
headers = {"Authorization": "Bearer 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"}
|
5 |
-
|
6 |
-
def query(payload):
|
7 |
-
response = requests.post(API_URL, headers=headers, json=payload)
|
8 |
-
return response.json()
|
9 |
-
|
10 |
-
output = query({
|
11 |
-
"inputs": {
|
12 |
-
"past_user_inputs": ["Which movie is the best ?"],
|
13 |
-
"generated_responses": ["It's Die Hard for sure."],
|
14 |
-
"text": "Can you explain why ?"
|
15 |
-
},
|
16 |
-
})
|
|
|
1 |
+
import gradio as gr
|
2 |
|
3 |
+
gr.Interface.load("models/microsoft/DialoGPT-medium").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|