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