Spaces:
Runtime error
Runtime error
dron3flyv3r
commited on
Commit
·
3ef9a12
1
Parent(s):
2cb27ad
Add HUGGINGFACE_API_KEY to greet function
Browse files
app.py
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
2 |
|
3 |
|
4 |
def greet(name):
|
5 |
-
return "Hello " + name + "!!" +
|
6 |
|
7 |
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
|
4 |
+
HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
5 |
|
6 |
|
7 |
def greet(name):
|
8 |
+
return "Hello " + name + "!!" + HUGGINGFACE_API_KEY
|
9 |
|
10 |
|
11 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|