Tamiloneto8 commited on
Commit
9fb8ca0
·
verified ·
1 Parent(s): 02fd07d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Load the private Space (replace with your actual private Space details)
4
+ private_space = gr.Interface.load("huggingface.co/spaces/Tamiloneto8/Test1")
5
+
6
+ # Create a public Space interface
7
+ iface = gr.Interface(
8
+ fn=lambda x: private_space(x), # Process input using the private Space
9
+ inputs="text",
10
+ outputs="text",
11
+ title="Public Space with Private Space Backend"
12
+ )
13
+
14
+ iface.launch()