Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
# Load the deployed interface
|
4 |
+
interface = gr.load("spaces/kevalfst/json-generator")
|
5 |
+
|
6 |
+
# Call it with your prompt
|
7 |
+
output = interface("A blog post with title, author, and tags")
|
8 |
+
print("Generated JSON:\n", output)
|