Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ st.write(x, 'squared is', x * x)
|
|
5 |
|
6 |
print("hello")
|
7 |
|
|
|
8 |
import json
|
9 |
import requests
|
10 |
API_URL = "https://api-inference.huggingface.co/models/gpt2"
|
@@ -15,4 +16,5 @@ def query(payload):
|
|
15 |
response = requests.request("POST", API_URL, headers=headers, data=data)
|
16 |
return json.loads(response.content.decode("utf-8"))
|
17 |
data = query("Can you please let us know more details about your ")
|
18 |
-
print(data)
|
|
|
|
5 |
|
6 |
print("hello")
|
7 |
|
8 |
+
"""
|
9 |
import json
|
10 |
import requests
|
11 |
API_URL = "https://api-inference.huggingface.co/models/gpt2"
|
|
|
16 |
response = requests.request("POST", API_URL, headers=headers, data=data)
|
17 |
return json.loads(response.content.decode("utf-8"))
|
18 |
data = query("Can you please let us know more details about your ")
|
19 |
+
print(data)
|
20 |
+
"""
|