Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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()
|