Commit
·
d5fe222
1
Parent(s):
0313309
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
2 |
API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-neo-2.7B"
|
3 |
apikey=os.environ.get('api_key')
|
4 |
headers = {"Authorization": f"Bearer {apikey}"}
|
|
|
1 |
import gradio as gr
|
2 |
+
import requests
|
3 |
+
import json
|
4 |
+
import os
|
5 |
API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-neo-2.7B"
|
6 |
apikey=os.environ.get('api_key')
|
7 |
headers = {"Authorization": f"Bearer {apikey}"}
|