Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import requests
|
|
3 |
import gradio as gr
|
4 |
import random
|
5 |
import time
|
|
|
6 |
|
|
|
7 |
from huggingface_hub import InferenceApi
|
8 |
-
API_TOKEN='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'
|
9 |
-
|
10 |
inference = InferenceApi("bigscience/bloom",token=API_TOKEN)
|
11 |
|
12 |
prompt="""
|
|
|
3 |
import gradio as gr
|
4 |
import random
|
5 |
import time
|
6 |
+
import os
|
7 |
|
8 |
+
API_TOKEN = os.getenv("API_TOKEN")
|
9 |
from huggingface_hub import InferenceApi
|
|
|
|
|
10 |
inference = InferenceApi("bigscience/bloom",token=API_TOKEN)
|
11 |
|
12 |
prompt="""
|