Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
sageco214
/
Axon_OCR
like
0
Sleeping
App
Files
Files
Community
d7f8e7e
Axon_OCR
/
gr.py
Sage
first commit
02dad28
over 1 year ago
raw
Copy download link
history
blame
233 Bytes
import
json
import
gradio
as
gr
def
save_json
(
text
):
with
open
(
"output.json"
,
"w"
)
as
outfile:
json.dump(text, outfile)
return
"output.json"
demo = gr.Interface(save_text_as_json,
"text"
,
"file"
)
demo.launch()