Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import spaces
|
| 3 |
-
|
| 4 |
-
@spaces.GPU
|
| 5 |
-
def dummy():
|
| 6 |
-
return "ok"
|
| 7 |
|
| 8 |
with gr.Blocks() as demo:
|
| 9 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
demo.launch(
|
| 12 |
-
server_name="0.0.0.0",
|
| 13 |
-
server_port=7860,
|
| 14 |
-
ssr_mode=False
|
| 15 |
-
)
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
with gr.Blocks() as demo:
|
| 4 |
+
gr.Markdown("test")
|
| 5 |
+
|
| 6 |
+
print(gr.__version__)
|
| 7 |
+
print(type(demo.app))
|
| 8 |
+
print(hasattr(demo.app, "proxy_to_node"))
|
| 9 |
|
| 10 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
|
|
|
|
|
|
|
|