Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
border: 2px solid black; /* Thickness and color of border */
|
| 6 |
-
border-radius: 8px; /* Optional: rounded corners */
|
| 7 |
-
padding: 10px; /* Optional: inner spacing */
|
| 8 |
-
margin-bottom: 10px; /* Optional: spacing below the row */
|
| 9 |
-
}
|
| 10 |
-
"""
|
| 11 |
|
| 12 |
-
|
| 13 |
-
with gr.Row(elem_id="my-row"):
|
| 14 |
-
gr.Textbox(label="Input 1")
|
| 15 |
-
gr.Textbox(label="Input 2")
|
| 16 |
|
| 17 |
-
demo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
# Replace with your private Space repo ID, e.g. "username/private-space-name"
|
| 5 |
+
PRIVATE_SPACE_ID = "ShankarC/StockAdvisorCL"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
hf_token = os.getenv("HF_TOKEN") # Set this in your public Space secrets
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
demo = gr.Interface.load(
|
| 10 |
+
PRIVATE_SPACE_ID,
|
| 11 |
+
hf_token=hf_token
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
demo.launch()
|