mishig HF staff commited on
Commit
42bc72f
1 Parent(s): 0538b40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,8 +77,8 @@ with gr.Blocks(css=css) as demo:
77
  )
78
  with gr.Row():
79
  with gr.Column(scale=1, min_width=600):
80
- input_prompt = gr.TextArea(label="Prompt", lines=2)
81
- input_schema = gr.Code(label="JSON Schema")
82
  generate_btn = gr.Button("Generate")
83
  with gr.Column(scale=1, min_width=600):
84
  output_json = gr.JSON(label="Generated JSON")
 
77
  )
78
  with gr.Row():
79
  with gr.Column(scale=1, min_width=600):
80
+ input_prompt = gr.TextArea("Generate a json where it is silver Aston Martin DB5 manufactured in 1964", label="Prompt", lines=2)
81
+ input_schema = gr.Code('{\n "type": "object",\n "properties": {\n "car": {\n "type": "object",\n "properties": {\n "make": {\n "type": "string"\n },\n "model": {\n "type": "string"\n },\n "year": {\n "type": "number"\n },\n "colors": {\n "type": "array",\n "items": {\n "type": "string"\n }\n }\n }\n }\n }\n}', label="JSON Schema")
82
  generate_btn = gr.Button("Generate")
83
  with gr.Column(scale=1, min_width=600):
84
  output_json = gr.JSON(label="Generated JSON")