Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,9 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
9 |
token = os.getenv("HUGGINGFACE_TOKEN")
|
10 |
if token =="":
|
11 |
raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
|
12 |
-
|
13 |
-
|
|
|
14 |
|
15 |
@spaces.GPU(duration=60)
|
16 |
def respond(
|
|
|
9 |
token = os.getenv("HUGGINGFACE_TOKEN")
|
10 |
if token =="":
|
11 |
raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
|
12 |
+
print(token)
|
13 |
+
|
14 |
+
client = InferenceClient("google/gemma-2-2b-it",token = token)
|
15 |
|
16 |
@spaces.GPU(duration=60)
|
17 |
def respond(
|