Spaces:
Runtime error
Runtime error
Commit ·
a0c8b34
1
Parent(s): cc09663
System check
Browse files
app.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
def temp(input_1):
|
| 5 |
return "Hey"
|
| 6 |
|
| 7 |
|
|
|
|
|
|
|
| 8 |
iface = gr.Interface(fn=temp, inputs="sketchpad", outputs="textbox")
|
| 9 |
print(f"You are in the spaces: {iface.is_space}")
|
| 10 |
-
iface.launch(debug=True,share=True)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
|
| 4 |
|
| 5 |
def temp(input_1):
|
| 6 |
return "Hey"
|
| 7 |
|
| 8 |
|
| 9 |
+
print(f"System: {os.getenv('SYSTEM')}")
|
| 10 |
+
|
| 11 |
iface = gr.Interface(fn=temp, inputs="sketchpad", outputs="textbox")
|
| 12 |
print(f"You are in the spaces: {iface.is_space}")
|
| 13 |
+
iface.launch(debug=True, share=True)
|