Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from gradio.inputs import Textbox
|
3 |
from gradio.outputs import Textbox as TextOutput
|
4 |
|
5 |
def process(text):
|
6 |
-
return f'Hi {text}'
|
7 |
|
8 |
interface = gr.Interface(
|
9 |
fn=process,
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
import gradio as gr
|
4 |
from gradio.inputs import Textbox
|
5 |
from gradio.outputs import Textbox as TextOutput
|
6 |
|
7 |
def process(text):
|
8 |
+
return f'Hi {text} (API_KEY: {os.environ.get("API_KEY")})'
|
9 |
|
10 |
interface = gr.Interface(
|
11 |
fn=process,
|