HarleyCooper commited on
Commit
733e010
·
verified ·
1 Parent(s): 00679d8

Fix Gradio 4 initial render status component

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -3,6 +3,7 @@
3
  from __future__ import annotations
4
 
5
  import os
 
6
 
7
  try:
8
  from dotenv import load_dotenv
@@ -65,7 +66,12 @@ with gr.Blocks(title="Cree1865 Tinker Endpoint") as demo:
65
  "This Space calls the final 800-step Tinker sampler remotely. "
66
  "It is an experimental endpoint for inspection, not a validated fluent Cree model."
67
  )
68
- gr.JSON(value=endpoint_status(), label="Endpoint status")
 
 
 
 
 
69
 
70
  with gr.Row():
71
  with gr.Column(scale=3):
 
3
  from __future__ import annotations
4
 
5
  import os
6
+ import json
7
 
8
  try:
9
  from dotenv import load_dotenv
 
66
  "This Space calls the final 800-step Tinker sampler remotely. "
67
  "It is an experimental endpoint for inspection, not a validated fluent Cree model."
68
  )
69
+ gr.Textbox(
70
+ value=json.dumps(endpoint_status(), indent=2),
71
+ label="Endpoint status",
72
+ lines=4,
73
+ interactive=False,
74
+ )
75
 
76
  with gr.Row():
77
  with gr.Column(scale=3):